*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

Reply via email to