I am getting these errors in my collector logs. Cricket isn't collecting from some router due to an snmp.pm error. [14-Mar-2007 08:48:05 ] Retrieved data for fastethernet0_0 (2): 6138752282,12888242849,9301,0,31547813,3181737 1 Use of uninitialized value in join or string at /usr/local/nav/cricket/cricket/lib/snmp.pm line 91. Use of uninitialized value in join or string at /usr/local/nav/cricket/cricket/lib/snmp.pm line 91. [14-Mar-2007 08:48:05 ] Retrieved data for serial0_0_0 (1): U,U,3482,0,41524607,48270269 [14-Mar-2007 08:48:05 ] Some data is missing for serial0_0_0 (1). [14-Mar-2007 08:48:05 ] Retrieved data for fastethernet0 (2): 1069185963,1532015524,4,0,6113558,5119441 Use of uninitialized value in join or string at /usr/local/nav/cricket/cricket/lib/snmp.pm line 91. Use of uninitialized value in join or string at /usr/local/nav/cricket/cricket/lib/snmp.pm line 91. [14-Mar-2007 08:48:05 ] Retrieved data for serial0 (1): U,U,1,0,5381390,6335406 [14-Mar-2007 08:48:05 ] Some data is missing for serial0 (1). [14-Mar-2007 08:48:05 ] Retrieved data for fastethernet0_0 (2): 5700649910,1889727304,34257,0,13426331,1013722 3 Use of uninitialized value in join or string at /usr/local/nav/cricket/cricket/lib/snmp.pm line 91. Use of uninitialized value in join or string at /usr/local/nav/cricket/cricket/lib/snmp.pm line 91. [14-Mar-2007 08:48:05 ] Retrieved data for serial0_0_0 (1): U,U,1006540,0,10856589,14524104 [14-Mar-2007 08:48:05 ] Some data is missing for serial0_0_0 (1). I read about a different snmp.pm or snmpUtils.pm that I could use. Anyone have any input on that?
From gwc2004 at gmail.com Wed Mar 14 12:57:59 2007 From: gwc2004 at gmail.com (Greg Cooper) Date: Wed Mar 14 18:58:06 2007 Subject: [Nav-users] Yet Another Cricket Question Message-ID: <4ddd24660703141057g18f111c6k3499310c2c63becf@mail.gmail.com>
Hey, I figured out some problems I had with statistical collection and Cricket. I need to make the target types for all my serial interfaces 'standard-interface" instead of them using the --default-- of snmpv2-interface. I can change the targets files manually, but how do I keep makecricketconfig.pl from rewriting them and breaking them? Or more to the point, how do I make the makecricketconfig.pl script do this for me? Thanks! Greg
From morten.brekkevold at uninett.no Thu Mar 15 11:59:46 2007 From: morten.brekkevold at uninett.no (Morten Brekkevold) Date: Thu Mar 15 11:59:51 2007 Subject: [Nav-users] getDeviceData Java errors In-Reply-To: <4ddd24660703100549m38e8bf53l858b508ce07b4069@mail.gmail.com> References: <4ddd24660703100549m38e8bf53l858b508ce07b4069@mail.gmail.com> Message-ID: <45F92722.1080508@uninett.no>
Greg Cooper wrote, On 10-03-2007 14:49:
I have a stock installation of NAV 3.2.1 on a CentOS 4.4 box. I am seeing this in the getDeviceData-stderr.log. Any idea what it means?
java.lang.NullPointerException at org.postgresql.jdbc2.AbstractJdbc2Statement.execute( AbstractJdbc2Statement.java:53) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate( AbstractJdbc1Statement.java:273) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate( AbstractJdbc1Statement.java:259) at no.ntnu.nav.Database.Database.update(Database.java:1004) at OidTester.doTest(OidTester.java:308) at OidTester.oidTest(OidTester.java:43) at QueryNetbox.run(QueryNetbox.java:722)
java.lang.NullPointerException at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate( AbstractJdbc1Statement.java:274) at org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate( AbstractJdbc1Statement.java:259) at no.ntnu.nav.Database.Database.update(Database.java:1004) at no.ntnu.nav.Database.Database.update(Database.java:989) at no.ntnu.nav.getDeviceData.dataplugins.Swport.SwportHandler.handleData( SwportHandler.java:305) at DataContainersImpl.callDataHandlers(DataContainersImpl.java:69) at QueryNetbox.run(QueryNetbox.java:806)
These are two NullPointerExceptions inside the PostgreSQL JDBC driver, although I cannot say why they occur. The first happens as getDeviceData tries to update the database to register that a box supports a given SNMP OID. The second happens as NAV tries to update an entry in the swport table. You'd have to look at the code of the JDBC driver to be able to see what could cause NullPointerExceptions at those particular lines (AbstractJdbc2Statement.java:53 and AbstractJdbc1Statement.java:274), but I don't even know which version of the driver you are using. -- mvh Morten Brekkevold UNINETT
From morten.brekkevold at uninett.no Thu Mar 15 12:40:27 2007 From: morten.brekkevold at uninett.no (Morten Brekkevold) Date: Thu Mar 15 12:40:30 2007 Subject: [Nav-users] NAV 3.2.1 from snapshot on ubuntu server problem In-Reply-To: <45F511D2.7080401@carnet.hr> References: <45F511D2.7080401@carnet.hr> Message-ID: <45F930AB.7010902@uninett.no>
Silvije wrote, On 12-03-2007 09:39:
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 461, in import_module f, p, d = imp.find_module(parts[i], path)
ImportError: No module named nav
I am using apache2 and configured nav web as virtualhost on port 8888
Is this ok to do or not?
I think I got all dependencies right. PYTHONPATH is set to /usr/local/nav/lib/python...
I'm not sure that Apache/mod_python would pick up on the PYTHONPATH environment variable, you might have to use some mod_python configuration parameters in your Apache config to specify the python path. A better approach for an installation from source on Ubuntu would be to add a file in /etc/python called 'sitecustomize.py', and add something like this to it: import sys sys.path.append('/usr/local/nav/lib/python') This module will be loaded by all Python programs that are run on your Ubuntu system. On another note, you should try the Debian package of NAV on Ubuntu. I think Ubuntu is similar enough to Debian for it to work, and it would make life a lot easier for you (dependency-wise, anyway). -- mvh Morten Brekkevold UNINETT
From morten.brekkevold at uninett.no Thu Mar 15 12:48:56 2007 From: morten.brekkevold at uninett.no (Morten Brekkevold) Date: Thu Mar 15 12:49:02 2007 Subject: [Nav-users] LDAP Authentication In-Reply-To: <4ddd24660703120903gc499f13gfacb5ffaf19eba9c@mail.gmail.com> References: <4ddd24660703120903gc499f13gfacb5ffaf19eba9c@mail.gmail.com> Message-ID: <45F932A8.5080702@uninett.no>
Greg Cooper wrote, On 12-03-2007 17:03:
Is anyone using LDAP to authenticate users on the web interface?
if so, how did you go about doing it?
First of all, take a look at this URL: http://metanav.ntnu.no/moin.cgi/LdapAuthentication Second of all, NAVs LDAP authentication ability is somewhat limited yet. It was modeled after the LDAP schema used at NTNU, and isn't quite configurable enough to suit any kind of LDAP schema people might care to implement. Specifically, NAV will grant access to all users in the configured subtree, which is not always desirable. At NTNU there were separate subtrees of user accounts for different systems; there was also a subtree of NAV accounts which contained only a fraction of the total amount of users. It also makes assumptions about which attributes are used to store account names and user names, etc. Fixing this isn't a very high priority at the moment, but if anybody cares to do something about it, the code is located in subsystem/webFront/lib/nav/web/ldapAuth.py . Patches will be greatly appreciated :) -- mvh Morten Brekkevold UNINETT
From morten.brekkevold at uninett.no Thu Mar 15 13:33:08 2007 From: morten.brekkevold at uninett.no (Morten Brekkevold) Date: Thu Mar 15 13:33:11 2007 Subject: [Nav-users] Cricket/NAV problem In-Reply-To: <4ddd24660703121031h716cb122q8cee4ba790fc632@mail.gmail.com> References: <4ddd24660703121031h716cb122q8cee4ba790fc632@mail.gmail.com> Message-ID: <45F93D04.4080707@uninett.no>
Greg Cooper wrote, On 12-03-2007 18:31:
I have some netboxes with IP/Hostnames in my /etc/hosts file. Not all my boxes are in there, but some are. When I browse a netbox and click on a port to view the statistics, I get an error message like this: [...] a = rrdtool.info(rrd_filename) error: opening '/usr/local/nav/cricket/cricket-config/../cricket-data/switch-ports/10.8.250.3/9_16.rrd':
No such file or directory
The actual path is .../switch-ports/DNS_NAME/9_16.rrd. When I go through Cricket and browse to that box, I see the stats and it works fine.
Is there something I can do to fix this?
I have a theory about what's going on. If you add an IP Device to NAV, and NAV is unable to do a reverse lookup of its IP address, it will use the device's IP address as its sysname (NAV always uses DNS names in the sysname column, for some old, obscure reason). So when makecricketconfig.pl generates cricket configuration, it sees that the name of the box is 10.8.250.3, and creates config based on that. It also registers in the rrd_file table that /usr/local/nav/cricket/cricket-config/../cricket-data/switch-ports/10.8.250.3/9_16.rrd belongs to this box. Then, later, NAV is able to perform a reverse lookup on 10.8.250.3 and sets the sysname of the box to DNS_NAME. Next time makecricketconfig.pl runs, it creates a cricket config entry for DNS_NAME, and ignores/discards the old 10.8.250.3 config. It also registers that /usr/local/nav/cricket/cricket-config/../cricket-data/switch-ports/DNS_NAME/9_16.rrd belongs to this box. So now, the rrd_file table says that there are two RRD files for the 9_16 interface of DNS_NAME. One of them might no longer exist, but it might sort first in the table, making the IP device browser attempt to use this file instead of the real one. I think you can fix it by running "cleanrrds.pl -r", which removes any entry from rrd_file that doesn't correspond to an existing file in the file system. This is just my best guess, though. I don't know why /usr/local/nav/cricket/cricket-config/../cricket-data/switch-ports/10.8.250.3/9_16.rrd disappears, though, as nothing in NAV deletes that. It might never have been created (e.g. makecricketconfig was run, but Cricket was never run until the DNS name had been resolved and makecricketconfig ran again). -- mvh Morten Brekkevold UNINETT
From annaliu at us.ibm.com Sat Mar 24 10:42:11 2007 From: annaliu at us.ibm.com (Anna Liu) Date: Sat Mar 24 18:42:24 2007 Subject: [Nav-users] Question in Configuring NAS Message-ID: <OFA51A9242.C09767EA-ON882572A6.006D229B-882572A8.00613DBD@us.ibm.com>
I'm new in NAV. Just recently got it installed on RHEL 4.0. NAV has really nice features. It combines network traffic and server/services monitors. I'm still in exploring stage. Have some questions, appreciate very much if I can get some helps: In Traffic Map I have all 10 routers displayed. Can I put switches in containers so that I can have them displayed in Traffic Map also? After I added a service for Windows 2000 server with SNMP community string, I start receiving notifications every 5 minutes. The notifications are all subjected "Cron <navcron@lanwatch2> $CRICKETDIR/cricket/collect-subtrees normal". I couldn't figure out how to stop sending these notifications after I commented out the line of OID from "./cricket/cricket-config/servers/Defaults:OID loadnix", and deleted the server and service from "Edit Database", but still receiving it.. Detail contents are listing here: ================================== Error and the lines leading up to it: [24-Mar-2007 10:30:08 ] Retrieved data for vlan44 (41): 10438892353644,94403720713501,0,0,3589469349,3346250220 [24-Mar-2007 10:30:08 ] Retrieved data for vlan48 (42): 1458405062399,605868363637,0,0,1957792583,3119005860 [24-Mar-2007 10:30:08 ] Retrieved data for users (): 1 [24-Mar-2007 10:30:08 ] Retrieved data for processes (): 66 [24-Mar-2007 10:30:08*] Could not resolve OID for loadnix Error and the lines leading up to it: [24-Mar-2007 10:30:08 ] Retrieved data for users (): 1 [24-Mar-2007 10:30:08 ] Retrieved data for processes (): 66 [24-Mar-2007 10:30:08*] Could not resolve OID for loadnix Use of uninitialized value in pattern match (m//) at /usr/local/nav/cricket/cricket/lib/Common/Util.pm line 69. [24-Mar-2007 10:30:08*] Could not find an OID in m3aninglessrule@whatsup:161:2.0:5:1.0:1/loadnix [24-Mar-2007 10:30:08*] 1 datasources required, 0 results returned! Error and the lines leading up to it: Use of uninitialized value in pattern match (m//) at /usr/local/nav/cricket/cricket/lib/Common/Util.pm line 69. [24-Mar-2007 10:30:08*] Could not find an OID in m3aninglessrule@whatsup:161:2.0:5:1.0:1/loadnix [24-Mar-2007 10:30:08*] 1 datasources required, 0 results returned! [24-Mar-2007 10:30:08 ] Retrieved data for load (): [24-Mar-2007 10:30:08*] No data retrieved. Skipping RRD update. [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.4.6.0 Error and the lines leading up to it: [24-Mar-2007 10:30:08*] No data retrieved. Skipping RRD update. [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.4.6.0 [24-Mar-2007 10:30:08 ] Retrieved data for memory (): U,U [24-Mar-2007 10:30:08 ] Some data is missing for memory (). [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.11.50.0 Regards, Anna Liu - annaliu@us.ibm.com (408)927-2846 Tie: 457-2846
From gwc2004 at gmail.com Mon Mar 26 10:41:18 2007 From: gwc2004 at gmail.com (Greg Cooper) Date: Mon Mar 26 16:41:31 2007 Subject: [Nav-users] Question in Configuring NAS In-Reply-To: <OFA51A9242.C09767EA-ON882572A6.006D229B-882572A8.00613DBD@us.ibm.com> References: <OFA51A9242.C09767EA-ON882572A6.006D229B-882572A8.00613DBD@us.ibm.com> Message-ID: <4ddd24660703260741v32f39d9bs50573c8036508496@mail.gmail.com>
About the traffic map: It only shows your layer 3 devices at the top layer, I believe, but if you double click on them or their segments, you can drill down to see the switches. You can then right-click and choose different VLANs to display their layer 2 map. http://metanav.ntnu.no/moin.cgi/TrafficMap That page has a lot of cool tips for using the Traffic Map. As far as your cricket problem down there, I think someone else from the list will have to tell you definitively what the problem is. I can offer the following advice, though: When you make any changes to your cricket installation remember to always su to navcron. Everything under cricket should be owned by the navcron user, I believe. If you want to update your cricket installation, su to navcron, run bin/makecricketconfig.pl, then cricket/cricket/compile. Then the cron jobs will have the updated info to collect on. Regards, Greg On 3/24/07, Anna Liu <annaliu@us.ibm.com> wrote:
I'm new in NAV. Just recently got it installed on RHEL 4.0. NAV has really nice features. It combines network traffic and server/services monitors. I'm still in exploring stage.
Have some questions, appreciate very much if I can get some helps:
In Traffic Map I have all 10 routers displayed. Can I put switches in containers so that I can have them displayed in Traffic Map also?
After I added a service for Windows 2000 server with SNMP community string, I start receiving notifications every 5 minutes. The notifications are all subjected "Cron <navcron@lanwatch2> $CRICKETDIR/cricket/collect-subtrees normal". I couldn't figure out how to stop sending these notifications after I commented out the line of OID from "./cricket/cricket-config/servers/Defaults:OID loadnix", and deleted the server and service from "Edit Database", but still receiving it.. Detail contents are listing here:
================================== Error and the lines leading up to it: [24-Mar-2007 10:30:08 ] Retrieved data for vlan44 (41): 10438892353644,94403720713501,0,0,3589469349,3346250220 [24-Mar-2007 10:30:08 ] Retrieved data for vlan48 (42): 1458405062399,605868363637,0,0,1957792583,3119005860 [24-Mar-2007 10:30:08 ] Retrieved data for users (): 1 [24-Mar-2007 10:30:08 ] Retrieved data for processes (): 66 [24-Mar-2007 10:30:08*] Could not resolve OID for loadnix
Error and the lines leading up to it: [24-Mar-2007 10:30:08 ] Retrieved data for users (): 1 [24-Mar-2007 10:30:08 ] Retrieved data for processes (): 66 [24-Mar-2007 10:30:08*] Could not resolve OID for loadnix Use of uninitialized value in pattern match (m//) at /usr/local/nav/cricket/cricket/lib/Common/Util.pm line 69. [24-Mar-2007 10:30:08*] Could not find an OID in m3aninglessrule@whatsup:161:2.0:5:1.0:1/loadnix [24-Mar-2007 10:30:08*] 1 datasources required, 0 results returned!
Error and the lines leading up to it: Use of uninitialized value in pattern match (m//) at /usr/local/nav/cricket/cricket/lib/Common/Util.pm line 69. [24-Mar-2007 10:30:08*] Could not find an OID in m3aninglessrule@whatsup:161:2.0:5:1.0:1/loadnix [24-Mar-2007 10:30:08*] 1 datasources required, 0 results returned! [24-Mar-2007 10:30:08 ] Retrieved data for load (): [24-Mar-2007 10:30:08*] No data retrieved. Skipping RRD update. [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.4.6.0
Error and the lines leading up to it: [24-Mar-2007 10:30:08*] No data retrieved. Skipping RRD update. [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.4.6.0 [24-Mar-2007 10:30:08 ] Retrieved data for memory (): U,U [24-Mar-2007 10:30:08 ] Some data is missing for memory (). [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.11.50.0
Regards,
Anna Liu - annaliu@us.ibm.com
(408)927-2846 Tie: 457-2846 _______________________________________________ nav-users mailing list nav-users@itea.ntnu.no http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
From annaliu at us.ibm.com Tue Mar 27 17:53:47 2007
From: annaliu at us.ibm.com (Anna Liu) Date: Wed Mar 28 01:53:56 2007 Subject: [Nav-users] How to remove all databases and restart again In-Reply-To: <4ddd24660703260741v32f39d9bs50573c8036508496@mail.gmail.com> Message-ID: <OF9D9A283E.DFD35A88-ON882572AB.00732F6B-882572AB.00834367@us.ibm.com> Thank you Greg. That helps. I need to restart from scratch building the topology and database. Is there a way for me to start over again? Regards, Anna Liu - annaliu@us.ibm.com (408)927-2846 Tie: 457-2846 "Greg Cooper" <gwc2004@gmail.com> 03/26/2007 07:41 AM To Anna Liu/Almaden/IBM@IBMUS cc nav-users@itea.ntnu.no Subject Re: [Nav-users] Question in Configuring NAS About the traffic map: It only shows your layer 3 devices at the top layer, I believe, but if you double click on them or their segments, you can drill down to see the switches. You can then right-click and choose different VLANs to display their layer 2 map. http://metanav.ntnu.no/moin.cgi/TrafficMap That page has a lot of cool tips for using the Traffic Map. As far as your cricket problem down there, I think someone else from the list will have to tell you definitively what the problem is. I can offer the following advice, though: When you make any changes to your cricket installation remember to always su to navcron. Everything under cricket should be owned by the navcron user, I believe. If you want to update your cricket installation, su to navcron, run bin/makecricketconfig.pl, then cricket/cricket/compile. Then the cron jobs will have the updated info to collect on. Regards, Greg On 3/24/07, Anna Liu <annaliu@us.ibm.com> wrote: I'm new in NAV. Just recently got it installed on RHEL 4.0. NAV has really nice features. It combines network traffic and server/services monitors. I'm still in exploring stage. Have some questions, appreciate very much if I can get some helps: In Traffic Map I have all 10 routers displayed. Can I put switches in containers so that I can have them displayed in Traffic Map also? After I added a service for Windows 2000 server with SNMP community string, I start receiving notifications every 5 minutes. The notifications are all subjected "Cron <navcron@lanwatch2> $CRICKETDIR/cricket/collect-subtrees normal". I couldn't figure out how to stop sending these notifications after I commented out the line of OID from "./cricket/cricket-config/servers/Defaults:OID loadnix", and deleted the server and service from "Edit Database", but still receiving it.. Detail contents are listing here: ================================== Error and the lines leading up to it: [24-Mar-2007 10:30:08 ] Retrieved data for vlan44 (41): 10438892353644,94403720713501,0,0,3589469349,3346250220 [24-Mar-2007 10:30:08 ] Retrieved data for vlan48 (42): 1458405062399,605868363637,0,0,1957792583,3119005860 [24-Mar-2007 10:30:08 ] Retrieved data for users (): 1 [24-Mar-2007 10:30:08 ] Retrieved data for processes (): 66 [24-Mar-2007 10:30:08*] Could not resolve OID for loadnix Error and the lines leading up to it: [24-Mar-2007 10:30:08 ] Retrieved data for users (): 1 [24-Mar-2007 10:30:08 ] Retrieved data for processes (): 66 [24-Mar-2007 10:30:08*] Could not resolve OID for loadnix Use of uninitialized value in pattern match (m//) at /usr/local/nav/cricket/cricket/lib/Common/Util.pm line 69. [24-Mar-2007 10:30:08*] Could not find an OID in m3aninglessrule@whatsup:161:2.0:5:1.0:1/loadnix [24-Mar-2007 10:30:08*] 1 datasources required, 0 results returned! Error and the lines leading up to it: Use of uninitialized value in pattern match (m//) at /usr/local/nav/cricket/cricket/lib/Common/Util.pm line 69. [24-Mar-2007 10:30:08*] Could not find an OID in m3aninglessrule@whatsup:161:2.0:5:1.0:1/loadnix [24-Mar-2007 10:30:08*] 1 datasources required, 0 results returned! [24-Mar-2007 10:30:08 ] Retrieved data for load (): [24-Mar-2007 10:30:08*] No data retrieved. Skipping RRD update. [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.4.6.0 Error and the lines leading up to it: [24-Mar-2007 10:30:08*] No data retrieved. Skipping RRD update. [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.4.6.0 [24-Mar-2007 10:30:08 ] Retrieved data for memory (): U,U [24-Mar-2007 10:30:08 ] Some data is missing for memory (). [24-Mar-2007 10:30:08*] Received SNMP response with error code noSuchName. OID: 1.3.6.1.4.1.2021.11.50.0 Regards, Anna Liu - annaliu@us.ibm.com (408)927-2846 Tie: 457-2846 _______________________________________________ nav-users mailing list nav-users@itea.ntnu.no http://mailman.itea.ntnu.no/mailman/listinfo/nav-users