Borge Brunes wrote:
mhall@newsstand.com said:
Ok now I get a new problem, I can't seem to get my Classpath and such loaded for the scripts. GetDeviceData-stderr.log is popping out "createConnection ClassNotFoundExecption error: org.postgresql.Driver. I've added the contents of the navenv.sh to the /etc/profile and I am sourcing this file in all of the startup scripts in /usr/local/etc/rc.d using ". /etc/profile" . I inserted a "set" and piped it to a file in all of the startup scripts so that I could make sure their environments were right during startup, and they all seem to be.
I'm at a loss on how to fix this now, any suggestions?
http://desperados.itea.ntnu.no/pipermail/nav-users/2005-July/000875.html Could you give us the output from 'env' in the shell you have started NAV?
Have you innstalled NAV from ports?
regards,
I installed from the ports tree. env output: HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/jdk1.4.2/bin:/usr/local/nav/bin:/usr/local/jdk1.4.2/bin PERL5LIB=/usr/local/nav/lib/perl:/usr/local/cricket/cricket/lib 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 JAVA_HOME=/usr/local/jdk1.4.2 PYTHONPATH=/usr/local/nav/lib/python
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 but there are no ports showing up for my devices in NAV, or macs, it appears data is not being collected.
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.
Matt
From mhall at newsstand.com Mon Aug 8 15:11:12 2005
From: mhall at newsstand.com (Matt Hall) Date: Mon Aug 8 21:11:25 2005 Subject: [Nav-users] Can't add devices In-Reply-To: 42F7AD5E.7080101@newsstand.com References: 200508081832.j78IW96C039014@duke.cc.uit.no 42F7AD5E.7080101@newsstand.com Message-ID: 42F7AE50.4020600@newsstand.com
Matt Hall wrote:
Borge Brunes wrote:
mhall@newsstand.com said:
Ok now I get a new problem, I can't seem to get my Classpath and such loaded for the scripts. GetDeviceData-stderr.log is popping out "createConnection ClassNotFoundExecption error: org.postgresql.Driver. I've added the contents of the navenv.sh to the /etc/profile and I am sourcing this file in all of the startup scripts in /usr/local/etc/rc.d using ". /etc/profile" . I inserted a "set" and piped it to a file in all of the startup scripts so that I could make sure their environments were right during startup, and they all seem to be.
I'm at a loss on how to fix this now, any suggestions?
http://desperados.itea.ntnu.no/pipermail/nav-users/2005-July/000875.html Could you give us the output from 'env' in the shell you have started NAV? Have you innstalled NAV from ports?
regards,
I installed from the ports tree. env output: HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/jdk1.4.2/bin:/usr/local/nav/bin:/usr/local/jdk1.4.2/bin
PERL5LIB=/usr/local/nav/lib/perl:/usr/local/cricket/cricket/lib 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
JAVA_HOME=/usr/local/jdk1.4.2 PYTHONPATH=/usr/local/nav/lib/python
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 but there are no ports showing up for my devices in NAV, or macs, it appears data is not being collected.
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.
Matt _______________________________________________ Nav-users mailing list Nav-users@itea.ntnu.no http://mailman.itea.ntnu.no/mailman/listinfo/nav-users
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