[rrd-developers] Re: Populating the database
bosinuga at ipnxnigeria.net
Fri Jun 17 21:24:52 MEST 2005
----- Original Message -----
From: "Osinuga Mobolaji" <bosinuga at ipnxnigeria.net>
To: "Osinuga Mobolaji" <bosinuga at ipnxnigeria.net>; "Tobias Oetiker"
<oetiker at ee.ethz.ch>; <rrd-users at list.ee.ethz.ch>;
<rrd-developers at list.ee.ethz.ch>; <rrd-announce at list.ee.ethz.ch>
Sent: Friday, June 17, 2005 5:42 PM
Subject: Populating the database
> I have a small script that I just wrote to do the simple nms for a
> I feel the database is being populated but it doesn't show anything from
> Though I followed the tutorials in setting this up, but I feel I am
> something out.
> What I want achieved is getting usage across an interface on a router
> graphical while a horizontal line is drawn at a particular point on the
> y-axis. This will help offset to be noticed immediately.
> The script is as below: I know somebody can help with a better script (I
> won't mind for the deployment I have to do over this weekend!)
> snmpget 10.50.1.1 monitor 220.127.116.11.1 > in
> snmpget 10.50.1.1 monitor 18.104.22.168.1 > out
> sed 's/interfaces.ifTable.ifEntry.ifInOctets.1 = Counter32: //g' in > inn
> sed 's/interfaces.ifTable.ifEntry.ifOutOctets.1 = Counter32: //g' out >
> cat inn <> b
> cat outt <>c
> echo $b
> echo $c
> rrdtool update myrouter.rrd N:$b:$c
> rrdtool graph myrouter-day.gif --start -86400 \
> DEF:inoctets=myrouter.rrd:input:AVERAGE \
> DEF:outoctets=myrouter.rrd:output:AVERAGE \
> AREA:inoctets#00FF00:"In Traffic" \
> LINE1:outoctets#0000FF:"Out Traffic"
> Thank you.
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
More information about the rrd-developers