mhall@newsstand.com said:
I also tried adding "su -f -m navcron -c" for my startup script exec to ensure that it was kicked off as navcron. I don't think I'm getting the error anymore
good.
but there are no ports showing up for my devices in NAV
try to: stop nav psql manage delete from rrd_file where subsystem='cricket'; run makecricketconfig.pl as user navcron nav start
, or macs, it appears data is not being collected. >
What is getDeviceData.log telling you?
I may have gotten ahead of myself and screwed some things up. I'm sorry guys, I'm not much of a sysadmin, mostly a network architect type of guy.
Most of us are :-)
FYI I'm getting this error from cron: Subject: Cron navcron@aus-nav-1 $BINDIR/getBoksMacs.sh $NUM_THREADS X-Cron-Env: <PERL5LIB=> X-Cron-Env: <PYTHONPATH=> X-Cron-Env: <CLASSPATH=> X-Cron-Env: <BINDIR=/usr/local/nav/bin> X-Cron-Env: <LOCALSTATEDIR=/usr/local/ nav/var> X-Cron-Env: <PATH=/usr/bin:/bin:/usr/local/bin> X-Cron-Env: MAILTO=root@localhost X-Cron-Env: <CRICKETDIR=/usr/local/cricket> X-Cron-Env: <NUM_THREADS=24> X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/ usr/local/nav> X-Cron-Env: <LOGNAME=navcron> X-Cron-Env: <USER=navcron>
createConnection ClassNotFoundExecption error: org.postgresql.Driver
Something is wrong with your enviroment. Here is is mine: Subject: Cron navcron@franklin $BINDIR/getBoksMacs.sh $NUM_THREADS X-cron-env: <PERL5LIB=/usr/local/nav/lib/perl:/usr/local/cricket/cricket/lib> X-cron-env: <PYTHONPATH=/usr/local/nav/lib/python> X-cron-env: <CLASSPATH=/usr/local/nav/lib/java/ConfigParser.jar:/usr/local/nav/lib/java/Database.jar:/usr/local/nav/lib/java/Event.jar:/usr/local/nav/lib/java/Logger.jar:/usr/local/nav/lib/java/NetboxInfo.jar:/usr/local/nav/lib/java/SimpleSnmp.jar:/usr/local/nav/lib/java/Util.jar:/usr/local/share/java/classes/postgresql.jar:/usr/local/share/java/classes/snmp.jar> X-cron-env: <BINDIR=/usr/local/nav/bin> X-cron-env: <LOCALSTATEDIR=/usr/local/nav/var> X-cron-env: <PATH=/usr/bin:/bin:/usr/local/bin> X-cron-env: MAILTO=root@localhost X-cron-env: <CRICKETDIR=/usr/local/cricket> X-cron-env: <NUM_THREADS=24> X-cron-env: <SHELL=/bin/sh> X-cron-env: <HOME=/usr/local/nav> X-cron-env: <LOGNAME=navcron> X-cron-env: <USER=navcron>
regards,
try to:
stop nav psql manage delete from rrd_file where subsystem='cricket'; run makecricketconfig.pl as user navcron nav start
Done
, or macs, it appears data is not being collected. >
What is getDeviceData.log telling you?
Guess I am still getting that error:
Aug 08 14:38:01 2005 getDeviceData MAIN-5-INIT Running with 16 threads (max) Aug 08 14:38:01 2005 getDeviceData MAIN-3-INIT Could not connect to database!
This seems to look wrong, when I execute the nav startup script with a status command I get the following:
networkDiscovery: Up cricket: Up eventEngine does not seem to be running... logengine: Up maintengine: Up servicemon.py (pid 2039) is running... smsd.pl (pid 2050) is running... thresholdMon: Up mactrace: Up iptrace: Up safe_smsd: Up getDeviceData does not seem to be running... backup: Up pping.py (pid 2079) is running... Alertengine is running with process id 2089. It has been running for 0 minutes and 31 seconds.
Should I be worried that getDeviceData is no running?
My path is showing correctly now in the cron jobs...Yeah!!!
But I'm getting a notification from cron now that follows:
Subject: smsd database connection problem
Status: 08.08.2005 14:54:04 PG_conn=SCALAR(0x8175b44) 1 Reset
Error was: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
I think I still have a path problem. I'm thinking the path still isn't getting sourced in the startup script correctly. Maybe I should change it from a bourne script to a bash script and use the "source" command.
Thanks for the help guys.
Matt
From Borge.Brunes at cc.uit.no Mon Aug 8 23:00:15 2005
From: Borge.Brunes at cc.uit.no (Borge Brunes) Date: Mon Aug 8 22:00:22 2005 Subject: [Nav-users] Some problems after upgrade Message-ID: 200508082000.j78K0FXA039900@duke.cc.uit.no
Folks,
I did an upgrade from svn 3290 to 3318, and now these messages are popping in: [08-Aug-2005 21:30:34*] Cannot update /usr/local/nav/cricket/cricket-config/../cricket-data//switches/tf4292-sw.infra.uit.no.rrd: expected 5 data source readings (got 4) from N:0:1:40827872:56543441:...
(our cricket-expert is at holliday)
I'm also getting a lot of these:
--- Subject: Hardware version changed for (67) From: alertengine@franklin.uit.no Date: Mon, 8 Aug 2005 17:22:20 +0200 (CEST)
This is an automatically generated message from NAV:
Hardware version changed to: N/A from: H0 ----- Subject: Hardware version changed for (67) From: alertengine@franklin.uit.no Date: Mon, 8 Aug 2005 17:22:22 +0200 (CEST)
This is an automatically generated message from NAV:
Hardware version changed to: H0 from: N/A ---
regards,
Matt Hall wrote:
try to:
stop nav psql manage delete from rrd_file where subsystem='cricket'; run makecricketconfig.pl as user navcron nav start
Done
, or macs, it appears data is not being collected. >
What is getDeviceData.log telling you?
Guess I am still getting that error:
Aug 08 14:38:01 2005 getDeviceData MAIN-5-INIT Running with 16 threads (max) Aug 08 14:38:01 2005 getDeviceData MAIN-3-INIT Could not connect to database!
This seems to look wrong, when I execute the nav startup script with a status command I get the following:
networkDiscovery: Up cricket: Up eventEngine does not seem to be running... logengine: Up maintengine: Up servicemon.py (pid 2039) is running... smsd.pl (pid 2050) is running... thresholdMon: Up mactrace: Up iptrace: Up safe_smsd: Up getDeviceData does not seem to be running... backup: Up pping.py (pid 2079) is running... Alertengine is running with process id 2089. It has been running for 0 minutes and 31 seconds.
Should I be worried that getDeviceData is no running?
My path is showing correctly now in the cron jobs...Yeah!!!
But I'm getting a notification from cron now that follows:
Subject: smsd database connection problem
Status: 08.08.2005 14:54:04 PG_conn=SCALAR(0x8175b44) 1 Reset
Error was: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
I think I still have a path problem. I'm thinking the path still isn't getting sourced in the startup script correctly. Maybe I should change it from a bourne script to a bash script and use the "source" command.
Thanks for the help guys.
Matt _______________________________________________ Nav-users mailing list Nav-users@itea.ntnu.no http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
Just as an FYI I gave up and symbolically linked everything into /usr/local/jdk1.4.2/jre/lib/ext. Things seem to be working now, but I'm worried that I'll have problem with other environmental variables not being set.
Any freebsd people here have suggestions on how to globally export this? I tried /etc/profile, but that doesn't seem to work since it isn't running with a login prompt. Freebsd has no /etc/profile.d and the only other option I can think of is using bash instead of sh in my startup scripts so that I can use the "source" statement instead of just using a ".". I'm not sure if this will work.
From mhall at newsstand.com Mon Aug 8 16:12:43 2005
From: mhall at newsstand.com (Matt Hall) Date: Mon Aug 8 22:12:53 2005 Subject: [Nav-users] Can't add devices In-Reply-To: 42F7BAFF.9080506@newsstand.com References: 200508081944.j78JiHHW039752@duke.cc.uit.no 42F7B91F.4040502@newsstand.com 42F7BAFF.9080506@newsstand.com Message-ID: 42F7BCBB.5070208@newsstand.com
Matt Hall wrote:
Matt Hall wrote:
try to:
stop nav psql manage delete from rrd_file where subsystem='cricket'; run makecricketconfig.pl as user navcron nav start
Done
, or macs, it appears data is not being collected. >
What is getDeviceData.log telling you?
Guess I am still getting that error:
Aug 08 14:38:01 2005 getDeviceData MAIN-5-INIT Running with 16 threads (max) Aug 08 14:38:01 2005 getDeviceData MAIN-3-INIT Could not connect to database!
This seems to look wrong, when I execute the nav startup script with a status command I get the following:
networkDiscovery: Up cricket: Up eventEngine does not seem to be running... logengine: Up maintengine: Up servicemon.py (pid 2039) is running... smsd.pl (pid 2050) is running... thresholdMon: Up mactrace: Up iptrace: Up safe_smsd: Up getDeviceData does not seem to be running... backup: Up pping.py (pid 2079) is running... Alertengine is running with process id 2089. It has been running for 0 minutes and 31 seconds.
Should I be worried that getDeviceData is no running?
My path is showing correctly now in the cron jobs...Yeah!!!
But I'm getting a notification from cron now that follows:
Subject: smsd database connection problem
Status: 08.08.2005 14:54:04 PG_conn=SCALAR(0x8175b44) 1 Reset
Error was: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.
I think I still have a path problem. I'm thinking the path still isn't getting sourced in the startup script correctly. Maybe I should change it from a bourne script to a bash script and use the "source" command.
Thanks for the help guys.
Matt _______________________________________________ Nav-users mailing list Nav-users@itea.ntnu.no http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
Just as an FYI I gave up and symbolically linked everything into /usr/local/jdk1.4.2/jre/lib/ext. Things seem to be working now, but I'm worried that I'll have problem with other environmental variables not being set. Any freebsd people here have suggestions on how to globally export this? I tried /etc/profile, but that doesn't seem to work since it isn't running with a login prompt. Freebsd has no /etc/profile.d and the only other option I can think of is using bash instead of sh in my startup scripts so that I can use the "source" statement instead of just using a ".". I'm not sure if this will work.
One step closer, now that the symlinks are inSQLException for update statement: INSERT INTO swport (swportid,moduleid,port,ifindex,interface,link,speed,duplex,vlan,trunk) VALUES ('20','6','05','6','FastEthernet0/5','y','100','f','1','f') org.postgresql.util.PSQLException: This statement has been closed. at org.postgresql.jdbc2.AbstractJdbc2Statement.checkClosed(AbstractJdbc2Statement.java:2304) at org.postgresql.jdbc2.AbstractJdbc2Statement.getUpdateCount(AbstractJdbc2Statement.java:432) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:268) at no.ntnu.nav.Database.Database.update(Database.java:987) at no.ntnu.nav.Database.Database.insert(Database.java:911) at no.ntnu.nav.getDeviceData.dataplugins.Swport.SwportHandler.handleData(SwportHandler.java:217) at DataContainersImpl.callDataHandlers(DataContainersImpl.java:64) at QueryNetbox.run(QueryNetbox.java:775) place I get SQL Exeptions in the getDeviceData-stderr.log:
Matt