I've fixed all the little python problems so far with my freebsd install.
Everything seems to work now except adding devices. I have all the rooms and
locations setup but when I try and add an actual router I get the following
error:
Error: pysnmpap.cli.error.BadArgumentError: Parser error at ObjectName:
public: Malformed Object ID .1.3.6.1.2.1.public at ObjectName: invalid
literal for long(): public
Where public is the RO snmp string.
Thanks
Any ideas?
Pete Hoffswell 616-732-1101 (Grand Rapids, x1101)
University LAN/WAN Coordinator 616-510-1198 (Mobile)
IT Services pete.hoffswell(a)davenport.edu
Davenport University http://www.davenport.edu
Davenport University. It's working.
>>> Pete Hoffswell 7/28/2005 4:46 PM >>>
Update:
I get this directly after restarting apache:
Mod_python error: "PythonHeaderParserHandler nav.web"Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/local/nav/lib/python/nav/web/__init__.py", line 45, in headerparserhandler import nav.web.auth File "/usr/local/nav/lib/python/nav/web/auth.py", line 34, in ? from nav.db.navprofiles import Account, Accountnavbar, NavbarlinkImportError: cannot import name Account
But after a page reload, I get the following:
Mod_python error: "PythonHeaderParserHandler nav.web"Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/local/nav/lib/python/nav/web/__init__.py", line 55, in headerparserhandler nav.web.auth.authenticate(req)AttributeError: 'module' object has no attribute 'authenticate' Any thoughts?
Pete Hoffswell 616-732-1101 (Grand Rapids, x1101)
University LAN/WAN Coordinator 616-510-1198 (Mobile)
IT Services pete.hoffswell(a)davenport.edu
Davenport University http://www.davenport.edu
Davenport University. It's working.
>>> "Pete Hoffswell" <Pete.Hoffswell(a)davenport.edu> 7/28/2005 4:29 PM >>>
Hello -
I am trying to get a new installation of NAV (nav-3.0_rc2-1.noarch.rpm) running on my standard installation of SuSE 9.1 SLES. I have followed the regular installation directions.
1
0
by thomasbell@weber.edu
30 Jul '05
30 Jul '05
I receive error below when trying to access the toolbox > network
explorer.
Could some elaborate on what could be causing this.
--Tom
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/nav/web/pyproxy/proxy.py", line
60, in handler
user=user, session=req.session.id)
File "/usr/lib/python2.3/site-packages/nav/web/pyproxy/proxy.py", line
123, in doRequest
request.request(method, path, query, headers)
File "/usr/lib/python2.3/httplib.py", line 721, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.3/httplib.py", line 742, in _send_request
self.endheaders()
File "/usr/lib/python2.3/httplib.py", line 715, in endheaders
self._send_output()
File "/usr/lib/python2.3/httplib.py", line 600, in _send_output
self.send(msg)
File "/usr/lib/python2.3/httplib.py", line 567, in send
self.connect()
File "/usr/lib/python2.3/httplib.py", line 551, in connect
raise socket.error, msg
error: (111, 'Connection refused')
>From kreide at gmail.com Fri Jul 29 15:21:20 2005
From: kreide at gmail.com (Kristian Eide)
Date: Fri Jul 29 23:21:25 2005
Subject: [Nav-users]
In-Reply-To: <s2ea3c3e.038(a)gwvsmta2.weber.edu>
References: <s2ea3c3e.038(a)gwvsmta2.weber.edu>
Message-ID: <b4c110fd05072914212309be3a(a)mail.gmail.com>
> I receive error below when trying to access the toolbox > network
> explorer.
> Could some elaborate on what could be causing this.
Did you remember to start tomcat?
--
Kristian
> Ofcourse, it may have nothing to do with NAV, perhaps it's just that the
> snmp class (from westhawk) doesn't work with JDK 1.5.
Actually, we don't use the Westhawk SNMP stack anymore, so this might
be the problem. We now use the Java SNMP stack from here:
http://edge.mcs.drexel.edu/GICL/people/sevy/snmp/
--
Kristian
I installed RC2 on Fedora Core 4 today, installed perfectly using the
RHEL4 guide. However, I have this problem in the getDeviceData.log for
each IP Device that it queries :
java.lang.NoClassDefFoundError: snmp/SNMPException
at QueryNetbox.run(QueryNetbox.java:703)
So I'm not collecting any data. Do you think the problem is Java 1.5 ?
I have the snmp jar placed in the jre/lib/ext directory. IF Java 1.5 is
a known bug then I will downgrade.
Thanks
----------------
Aditya Rajgarhia
305 Kemp Hall
x2042
arajgarh(a)iwu.edu
>From Pete.Hoffswell at davenport.edu Thu Jul 28 17:29:22 2005
From: Pete.Hoffswell at davenport.edu (Pete Hoffswell)
Date: Thu Jul 28 22:29:56 2005
Subject: [Nav-users]
New Installation - ImportError: cannot import name Account
Message-ID: <s2e907f7.040(a)pop.davenport.edu>
Hello -
I am trying to get a new installation of NAV (nav-3.0_rc2-1.noarch.rpm) running on my standard installation of SuSE 9.1 SLES. I have followed the regular installation directions.
Upon accessing the NAV webpage, I get this:
*--
Mod_python error: "PythonHeaderParserHandler nav.web"Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/local/nav/lib/python/nav/web/__init__.py", line 45, in headerparserhandler import nav.web.auth File "/usr/local/nav/lib/python/nav/web/auth.py", line 34, in ? from nav.db.navprofiles import Account, Accountnavbar, Navbarlink*--
Any idea what my problem might be? The installation looked to go fine to me.
Thank you.
Pete Hoffswell 616-732-1101 (Grand Rapids, x1101)
University LAN/WAN Coordinator 616-510-1198 (Mobile)
IT Services pete.hoffswell(a)davenport.edu
Davenport University http://www.davenport.edu
Davenport University. It's working.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NAV 3.0 RC2 is now available for download at http://metanav.ntnu.no/ .
A number of small, but critical bugs were found in RC1, and have been
fixed in this new release candidate. Unless critical bugs are reported
in this release candidate, this will be the baseline for NAV 3.0.0.
Upgrading from beta RC1
=======================
Some OIDs have been added, and due to a fix in the OID-tester, we
strongly recommend you to re-run the SQL script doc/sql/snmpoid.sql, as
documented in the README file of the same directory.
CHANGES
=======
Version 3.0_rc2
(released 20 July 2005)
Improvements:
* More data for the snmpoid table, please run the new snmpoid.sql to
ensure your system will work after an upgrade.
* The Service Monitor's RPC plugin no longer complains loudly to
stderr.
* The Messages and Report web interfaces will no longer
intermittently cross-over mysteriously.
* The alert message texts have been updated to contain messages for
all known alerts.
* Overlapping time periods in an alert profile will no longer cause
double alerts to be sent.
* Modules that are down can now actually be found and deleted in the
Device Management interface.
* The Traffic Map system and Network Explorer can now be properly
configured to run without a single NAV root directory.
* Alert Profiles web pages now include the correct stylesheets, so it
won't look as funny.
* Several getDeviceData-related problems were ironed out.
* The menu on Messages' maintenance list is no longer ugly.
* IP devices put on maintenance will now be taken off maintenance,
instead of remaining on maintenance forever.
* Maintenance-scheduled IP devices can now be properly deleted from
messages.
* Next/previous page-links in reports will now work properly even
when using advanced search options. Also, advanced searching on
database fields that contain underscores (like sw_ver) will now
work.
* Performance improvements in the IP Device Center.
- --
Morten Vold
NTNU ITEA Integrasjonsgruppen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC3j+FXxIl0kpcOkQRAuL/AJ4mRZDumeyw6J5WYEbu2fMElly8rACg06qD
JiE2e+s7Ioaa/iHjoby5vEY=
=C+7R
-----END PGP SIGNATURE-----
>From kreide at gmail.com Wed Jul 20 14:06:25 2005
From: kreide at gmail.com (Kristian Eide)
Date: Wed Jul 20 22:06:30 2005
Subject: [Nav-users] Tomcat java (class/module) missing error & vlanPlot
java error
In-Reply-To: <42DE04B3.5050506(a)ntnu.no>
References: <E04174B5A513E542AD2CB6C1E18D9C7D4DD55C(a)Exchange.admin.khio.no>
<200507191831.06408.kreide(a)gmail.com> <42DE04B3.5050506(a)ntnu.no>
Message-ID: <b4c110fd05072013061cfba430(a)mail.gmail.com>
> > You need to copy (or symlink) the .jar files from nav/lib/java to the
> > shared/lib tomcat directory.
> That shouldn't really be necessary if you've already symlinked those
> jar-files to $JAVA_HOME/jre/lib/ext/ ? We certainly didn't do this on
> our production server, and it still works.
I think the recommended procedure is to only put the SNMP and Postgre
jars in lib/ext and leave all NAV-specific jars in nav/lib/java. It is
then necessary to symlink these files into the shared/lib tomcat
directory.
Of course symlinking everything into lib/ext works and is simpler :)
> > Should we perhaps have a tomcat install guide which mentions this?
> If anything were to be put in such a guide, it would be a bit about
> whether or not it is necessary to restart Tomcat or delete the extracted
> webapp directories when the NAV webapps have been upgraded. I think
> you're the expert on this particular subject :)
It is probably safest to delete the directories and then restart
tomcat (though a better option is to use the webadmin tool to simply
redeploy the web applications).
--
Kristian
Try to run the following command:
Switch(config)#snmp-server chassis-id XXXXXXXXX
where XXXXXXXXXX is the "System serial number:" for the switch which you
obtain with sh ver.
You must manually add this value to all switches in Cat 2900-series.
Regards Ketil
Asbj?rn Pr?is said:
>
>
> Hello.
> On NAV3 rc2 I get this error when trying to add a new catalyst 2924XLv
> IP device (category SW) :
>
> --- snip ---
> Add IP device
> Error: pysnmp.asn1.error.ValueConstraintError: Single value
> constraint for
> Version: 0 not within allowed values
> --- /snip ---
>
> If I reload the page, go back and try again, og just hit continue it
> disappears!
>
> Anyone else get this, or is it just me?
>
> -Asbj?rn-
>
> _______________________________________________
> Nav-users mailing list
> Nav-users(a)itea.ntnu.no
> http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
>
>
I have edited the step-by-step installation guide for NAV 3.0 on
Red Hat Enterprise Linux 4 to cover the RC2 version.
You can find it here:
http://metanav.ntnu.no/moin.cgi/InstallingOnRHEL4
Please give me feedback when you find errors or omissions so
I can fix them. Or if you just want to comment it... :-)
I hope this can be of help for someone.
Regards,
Roger
--
Roger Aas
Stord/Haugesund College
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For those of you who access the NAV source code using Subversion, the
URL to the repository has changed. Any working copies you have from the
old URL should be switched to the new URL by issuing this command:
svn switch --relocate http://svn.nav.ntnu.no/nav/ \
http://svn.itea.ntnu.no/repos/nav/
(If you are using authenticated access to the repository, change both
instances of http into https)
The old repository will still be available for about a week, but will
not receive any further updates.
- --
Morten Vold
NTNU ITEA Integrasjonsgruppen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC22ISXxIl0kpcOkQRAn2GAKCObwdzXmpbbegJkbv+dTDNSeyabgCgvTYA
IAliN51QVma5JOoPZVoXZLk=
=SO4X
-----END PGP SIGNATURE-----
>From BuleSari at khio.no Tue Jul 19 14:15:27 2005
From: BuleSari at khio.no (Bulent Sarinc)
Date: Tue Jul 19 13:16:08 2005
Subject: [Nav-users]
Tomcat java (class/module) missing error & vlanPlot java error
Message-ID: <E04174B5A513E542AD2CB6C1E18D9C7D4DD55C(a)Exchange.admin.khio.no>
Hi,
I get this / these errors when I click at Netword Explorer and vlanPlot
links in Toolbox page.
(I have setup everything (tomcat, apache, nav, postgresql etc etc) as
mentioned in how-to pages for nav.)
does anybody have an idea of howto solve this (these) problems?
for me it looks like its missing a class or module but I'm not sure
thanx in advance
Bulent Sarinc
khio
HTTP Status 500 -
________________________________
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoClassDefFoundError: no/ntnu/nav/ConfigParser/ConfigParser
navAdmin.service(navAdmin.java:38)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.
________________________________
Apache Tomcat/5.5.9
________________________________
NAV - Copyright (c) 2003-2004 NTNU ITEA
vlanPlot error: A error has occured fetching data from server
Below are the errors in the logs. The other logs don't have errors. One
noticeable bug is that I can only add two instances of the "Cisco
Catalyst 6000 MSFC2" with SysObjectID=1.3.6.1.4.1.9.1.301
If I delete those two I can add two other of those, but can never add
more than two. This is not a problem with other switches. Trying to add
a third gives me an error:
Mod_python error: "PythonHandler editdb"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 156, in
handler
output = editPage(req,pageList[table](),request,unicodeError)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 463, in
editPage
outputForm,action)
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 2435, in
add
disabled=True))
TypeError: __init__() takes at least 2 non-keyword arguments (1 given)
------------------
eventEngine.log:
Jul 15 06:41:16 2005 eventEngine EVENTQ_MONITOR_TASK-3-RUN SQLException
when fetching from eventq: Operation requires a scrollable ResultSet,
but this ResultSet is FORWARD_ONLY.
------------------
networkDiscovery-stderr.log:
SQLException: Operation requires a scrollable ResultSet, but this
ResultSet is FORWARD_ONLY.
org.postgresql.util.PSQLException: Operation requires a scrollable
ResultSet, but this ResultSet is FORWARD_ONLY.
at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.checkScrollable(AbstractJdbc
2ResultSet.java:179)
at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.beforeFirst(AbstractJdbc2Res
ultSet.java:251)
at networkDiscovery.avledVlan(networkDiscovery.java:1113)
at networkDiscovery.main(networkDiscovery.java:93)
------------------
getDeviceData-stderr.log has a lot of similar errors, this is the last:
SQLException for update statement: INSERT INTO swport
(swportid,moduleid,ifindex,speed) VALUES ('441','32','63','1000')
org.postgresql.util.PSQLException: This statement has been closed.
at
org.postgresql.jdbc2.AbstractJdbc2Statement.checkClosed(AbstractJdbc2Sta
tement.java:2304)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.getUpdateCount(AbstractJdbc2
Statement.java:432)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2S
tatement.java:268)
at no.ntnu.nav.Database.Database.update(Database.java:999)
at no.ntnu.nav.Database.Database.insert(Database.java:923)
at
no.ntnu.nav.getDeviceData.dataplugins.Swport.SwportHandler.handleData(Sw
portHandler.java:239)
at
DataContainersImpl.callDataHandlers(DataContainersImpl.java:64)
at QueryNetbox.run(QueryNetbox.java:791)
----------------
Aditya Rajgarhia
305 Kemp Hall
x2042
arajgarh(a)iwu.edu
>From kreide at gmail.com Fri Jul 15 11:22:36 2005
From: kreide at gmail.com (Kristian Eide)
Date: Fri Jul 15 19:22:46 2005
Subject: [Nav-users] Error adding particular switch
In-Reply-To: <7113539.1121446237565.JavaMail.arajgarh(a)iwu.edu>
References: <7113539.1121446237565.JavaMail.arajgarh(a)iwu.edu>
Message-ID: <b4c110fd0507151022207f8eb2(a)mail.gmail.com>
> when fetching from eventq: Operation requires a scrollable ResultSet,
> but this ResultSet is FORWARD_ONLY.
The cause of this error is that there was a change in newer JDBC
drivers for Postgre which create non-scrollable resultsets by default.
We will provide a fix for this in our next RC (expected next week).
> SQLException for update statement: INSERT INTO swport
> (swportid,moduleid,ifindex,speed) VALUES ('441','32','63','1000')
> org.postgresql.util.PSQLException: This statement has been closed.
This might be related to the above problem, but I will look into it as well.
--
Kristian