Newbie here: I saw the script below and I am trying to make it work.
I would like to know what the DS: would look like for the Date +%s command when creating the database. When I run the command on my redhat box it says 1015006357 Thanks in advance all Alex ----- Original Message ----- From: "spiekey" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, March 01, 2002 3:57 AM Subject: [rrd-users] Re: RRD Tutorial - Question -Real World Example > > ok, i changed my script to that (still doesnt work): > > #!/bin/sh > while (true) > do > BYTES_INPUT=` snmpwalk localhost public > interfaces.ifTable.ifEntry.ifInOctets.1 | awk -- ' BEGIN { FS = " " } {print > $2 } '` > BYTES_OUTPUT=` snmpwalk localhost public > interfaces.ifTable.ifEntry.ifOutOctets.1 | awk -- ' BEGIN { FS = " " } > print $2 } '` > DATE=`date +%s` > > ./rrdtool update localhost.rrd $DATE:$BYTES_INPUT:$BYTES_OUTPUT > echo $DATE - $BYTES_INPUT - $BYTES_OUTPUT > sleep 5 > done > > > But when i execute it: > # ./test > 1014972810 - = - = > ./test: line 11: 21319 Segmentation fault ./rrdtool update > localhost.rrd $DATE:$BYTES_INPUT:$BYTES_OUTPUT > 1014972816 - = - = -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
