fresh install of 0.8.4 not graphing snmp data

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
dave
Posts: 11
Joined: Tue Apr 02, 2002 3:30 am
Location: North Yorks

fresh install of 0.8.4 not graphing snmp data

Post by dave »

I've installed cacti 0.8.4 and am having problems collecting data from snmp.

the install went fine and running cmd.php manually shows that data is being returned:

snmp: 172.16.152.52:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 374412736
snmp: 172.16.152.52:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 904457983
snmp: 172.16.152.72:161, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 1803861614
snmp: 172.16.152.72:161, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 4251011922

but all the graphs show nan instead of traffic information, I first thought it might be the valuse being bigger than the maximum value setting in the rrd but as far as i understand counter data sources should record the difference rather than absolute value?

the rrd.log file shows this:

01/13/2004 10:40 AM - CMD: /usr/local/bin/rrdtool update /var/www/htdocs/cacti/rra/sigdc02_traffic.rrd --template traffic_in:traffic_out N::
01/13/2004 10:40 AM - CMD: /usr/local/bin/rrdtool update /var/www/htdocs/cacti/rra/sigrrd01_traffic.rrd --template traffic_out:traffic_in N::

Which makes me think it may be a problem with the template?

if i do show source on the graph i get the following:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="sigdc02 - Traffic - 172.16.152.52 (HP NC7131 Gigab)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/htdocs/cacti/rra/sigdc02_traffic.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/htdocs/cacti/rra/sigdc02_traffic.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

If any other information is required please let me know


thanks

dave
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

You use gigabit ethernet.
Can you control your data source?
100.000.000 or 1.000.000.000 (Mega or giga)?
If your max values are 100000000 for traffic_in and traffic_out, and if actual values are bigger than these rrd database mark as "unknown" for this polling.
I think u must change max values from 100000000 to 1000000000
dave
Posts: 11
Joined: Tue Apr 02, 2002 3:30 am
Location: North Yorks

Post by dave »

I did initially think that was the problem and I've set the max value to 100000000000 just to prove that it wasn't a problem. I have deleted the old rrds and now rrdtool info returns the following


rrdtool info sigdc02_traffic.rrd
filename = "sigdc02_traffic.rrd"
rrd_version = "0001"
step = 300
last_update = 1073999102
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+11
ds[traffic_in].last_ds = ""
ds[traffic_in].value = 0.0000000000e+00
ds[traffic_in].unknown_sec = 2
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+11
ds[traffic_out].last_ds = ""
ds[traffic_out].value = 0.0000000000e+00
ds[traffic_out].unknown_sec = 2


but i still get no output on the graphs
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests