[rrd-users] Re: RRD Tutorial - Question -Real World Example

Alex Kourafas Alex.Kourafas at ciwave.com
Fri Mar 1 19:29:46 MET 2002


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" <spiekey at hotmail.com>
To: <rrd-users at list.ee.ethz.ch>
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: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