[rrd-users] Re: I'cant update my db
Kiss Gabor [Bitman]
kissg at ssg.ki.iif.hu
Mon Sep 11 19:18:06 MEST 2006
> #!/bin/bash
>
> d=`snmpget -v2c -OQv -c sofasp 200.87.13.1 .1.3.6.1.4.1.9.9.109.1.1.1.1.3.1`
>
> a=`perl -e 'print time, "\n" '`
>
> /usr/bin/rrdtool update prueba0.rrd $a:$d >/dev/null
>
> When I run it in the command line (with sh prueba0.sh), it work fine, but
> with the crontab, the Data Base is not updated well. I put this line.
>
> */5 * * * * /bin/sh
> /srv/www/htdocs/pruebas/prueba0.sh >/dev/null 2>&1
>
> Do you now what is the problem with mi script.
Do not discard diagnostic messages but examine them.
(Personally I guess file prueba0.rrd is not in your $HOME.)
Gabor
--
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://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list