[rrd-users] RRDTOOL questions
cbrbike at gmail.com
Wed Nov 30 20:26:50 MET 2005
I'm new to RRDTool and am currently still using MRTG for monitoring our
network links. I've read through the documentation for RRDTool and have
followed the examples that are given. Please forgive me for being such a
newbie at this but I am now at a loss. My goal is to just use RRDTool for a
little more advanced graphing than what we currently have with MRTG. Here is
an example of what I'm trying to graph. We have a Cisco Router in which I
want to gather the IfInoctets and IfOutoctets and then graph it.
So first, I create a RRD using the create option like this. .
linux]# rrdtool create router1.rrd DS:input:COUNTER:600:U:U
DS:output:COUNTER:600:U:U RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:
0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:
Next, I've written a simple shell script that collects these IfInOctets and
Outoctet values and dumps to a file every five minutes. No problems there.
The text files fills with the counter values that I want for the Interfaces
WIthin this script are the update to the RRD as well as the graphing, so
that this is done automatically. here is the script. . .
while [ $X -le 20 ]
snmpget -v2c -c passwd IP 188.8.131.52.184.108.40.206.1.10.10 >>
snmpget -v2c -c passwd IP 220.127.116.11.18.104.22.168.1.16.10 >>
rrdtool update router1.rrd N:$IN:$OUT
rrdtool graph router1-day.png -s -86400 -t "Router 1 Ethernet Interface
Traffic" DEF:inoctets=border1.rrd:input:AVERAGE DEF:outoctets=
border1.rrd:output:AVERAGE AREA:outoctets\#00FF00:"Out Traffic"
Now, when I pull up the graph in my browser, I get a single blue line that
runs across the bottom of the graph which tells me it's at zero. This isn't
correct as I know there is traffic going over these links.
Anyway, that is where I am lost. I am sure that I'm missing something but
I've went through and read the docs and tried the examples again and still
can't find what it is that I'm missing. Can anyone shed some light on this
for me or atleast point me in the right direction, even if it's to a certain
part of the docs. Thanks in advance.
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users