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