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

*Joe* joe at tormented.org
Mon Apr 22 04:55:05 MEST 2002



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: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch] 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.
-- 
   __________________________________________________________________
 / 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





--
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