[rrd-users] Help using rrdtool update

Neil Calvert ncalvert at cabletron.com
Wed Oct 20 18:24:38 MEST 1999


Hi all

I'm trying a very basic script to be run with cron to pump two values
into a database (ifinoctets and ifoutoctets) - basically following the
tutorial. Unfortunately, RRDTOOL is coredumping when I run this script..
I wondered if anyone could take a look at it and suggest where I'm
screwing up...?

Script :

#!/bin/ksh
rrdarray[0]="`snmpget -v1 $1 $2 2.2.1.10.1 | awk '{print $3}'`"
rrdarray[1]="`snmpget -v1 $1 $2 2.2.1.16.1 | awk '{print $3}'`"
/apps/RRD/bin/rrdtool update /apps/RRD/mycsx.rrd N:`echo
${rrdarray[0]}`:`echo ${rrdarray[1]}`


Obviously the script accepts two parameters $1 = device IP $2 = device
community string.. I'm using RedHat Linux 6.0 to provide the SNMP query
tool.

Thanks for any tips...

Neil


--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list