[rrd-users] Re: I'cant update my db

Joe Loiacono jloiacon at csc.com
Mon Sep 11 17:37:03 MEST 2006


Typically when this happens to me (can run from commnd but not crontab) 
it's a path problem. You might check that ...

Joe





"juan luis montoya rivadineira" <juanluis.mr at gmail.com> 
Sent by: rrd-users-bounce at list.ee.ethz.ch
09/11/2006 11:30 AM

To
rrd-users at list.ee.ethz.ch
cc

Subject
[rrd-users] I'cant update my db






Hello list's friends:
I'm working with RRDTool two weeks ago. I'm trying to graphics about the
memory and CPU of two routers CISCO, but I have some problems. Help me
please:

This is the line to create the DB:

rrdtool create prueba0.rrd DS:maxmemory:GAUGE:600:U:U RRA:AVERAGE:0.5:1:10
RRA:MAX:0.5:1:10

And the script to update the DB:

#!/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.

Thanks……….

Juan Luis

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



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