Wow, the path to snmpwalk was the problem, that's 100x man, I've been trying to get this working forever it seems. Thanks a lot. Joe
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex van den Bogaerdt Sent: Sunday, April 21, 2002 4:52 PM To: *Joe* Cc: RRD users Subject: [rrd-users] Re: Update Problem (weird) *Joe* wrote: > > Ok. I made a perl script that updates and graphs my rrd. It works fine, > EXCEPT when I run it with crond. I view my cron logs and it executes the > perl script fine without errors. After being executed by crond I have no > updates to my rrd, but only an updated graph with no lines. First, > here's my perl script. > #!/usr/bin/perl > use strict; > > #DC1 > my $dc1in = `snmpwalk localhost joe16 2.2.1.10.2`; > $dc1in = qx{ snmpwalk localhost joe16 2.2.1.10.2 }; snmpwalk is located somewhere on the disk that is in your PATH when you are running the script from the shell and that's not in the PATH when run from cron. At least, this is what's usually wrong, say 9 out of 10 times. -- __________________________________________________________________ / [EMAIL PROTECTED] [EMAIL PROTECTED] \ | work private | | My employer is capable of speaking therefore I speak only for myself | +----------------------------------------------------------------------+ | Technical questions sent directly to me will be nuked. Use the list. | +----------------------------------------------------------------------+ | http://faq.mrtg.org/ | | http://rrdtool.eu.org --> tutorial | +----------------------------------------------------------------------+ -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
