[rrd-users] Re: Update Problem (weird)

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Sun Apr 21 23:51:38 MEST 2002

*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`;
> $dc1in = qx{ snmpwalk localhost joe16 };

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.
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| 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:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list