[mrtg] Re: Why all the NaNs?

Ruttenberg, Tanya Tanya.Ruttenberg at ssa.gov
Thu Jan 19 18:38:16 MET 2006


Some more background as I'm sitting here thinking about this and trying to
figure it out.

Turns out there *is* data going in there.  However, why can rrdtool fetch
not fetch it out?  It seems that rrdtool fetch always gets NaN.

I'm trying to turn on Threshold checking, but the threshold checking uses
the value fetched from the rrd file.  If rrdfetch returns NaN then the
threshold checking returns the wrong result.

Suggestions anyone?

Tanya

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Ruttenberg, Tanya
Sent: Thursday, January 19, 2006 12:19 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Why all the NaNs?

MRTG 2.12.2
Rrdtool 1.2.11
On Solaris 8

I am running MRTG to collect CPU utilization on a switch.  Here is my
mrtg.conf file:

EnableIPv6: no
LogFormat:rrdtool
PathAdd: /usr/local/bin
WorkDir: /data1/mrtg
LibAdd: /usr/local/rrdtool-1.2.11/lib/perl/5.8.7/sun4-solaris
RunAsDaemon: yes
Interval: 5
 
Target[SSA-CAM-OPS-W24E03_1_cpu]:
1.3.6.1.4.1.9.9.109.1.1.1.1.5.9&1.3.6.1.4.1.9.9.109.1.1.1.1.5.9:XXXXX at SSA-CA
M-OPS-W24E03::5:::2
Directory[SSA-CAM-OPS-W24E03_1_cpu]: OPS
MaxBytes[SSA-CAM-OPS-W24E03_1_cpu]: 100
Options[SSA-CAM-OPS-W24E03_1_cpu]: gauge,nopercent,growright,unknaszero,noo
Title[SSA-CAM-OPS-W24E03_1_cpu]: CPU Utilization == CPU #1

Here is the info on my rrd file, which was created by MRTG:

s00c161# rrdtool info /data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd
filename = "/data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd"
rrd_version = "0003"
step = 300
last_update = 1137688449
ds[ds0].type = "GAUGE"
ds[ds0].minimal_heartbeat = 600
ds[ds0].min = 0.0000000000e+00
ds[ds0].max = 1.0000000000e+02
ds[ds0].last_ds = "UNKN"
ds[ds0].value = 1.4691000000e+04
ds[ds0].unknown_sec = 0
ds[ds1].type = "GAUGE"
ds[ds1].minimal_heartbeat = 600
ds[ds1].min = 0.0000000000e+00
ds[ds1].max = 1.0000000000e+02
ds[ds1].last_ds = "UNKN"
ds[ds1].value = 1.4691000000e+04
ds[ds1].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 800
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0 rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0 rra[1].cf = "AVERAGE"
rra[1].rows = 800
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 0 rra[1].cdp_prep[1].value =
0.0000000000e+00 rra[1].cdp_prep[1].unknown_datapoints = 0 rra[2].cf =
"AVERAGE"
rra[2].rows = 800
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 2.8581767001e+02
rra[2].cdp_prep[0].unknown_datapoints = 1 rra[2].cdp_prep[1].value =
2.8581767001e+02 rra[2].cdp_prep[1].unknown_datapoints = 1 rra[3].cf =
"AVERAGE"
rra[3].rows = 800
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 2.8581767001e+02
rra[3].cdp_prep[0].unknown_datapoints = 193 rra[3].cdp_prep[1].value =
2.8581767001e+02 rra[3].cdp_prep[1].unknown_datapoints = 193 rra[4].cf =
"MAX"
rra[4].rows = 800
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0 rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0 rra[5].cf = "MAX"
rra[5].rows = 800
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 5.9830000000e+01
rra[5].cdp_prep[0].unknown_datapoints = 0 rra[5].cdp_prep[1].value =
5.9830000000e+01 rra[5].cdp_prep[1].unknown_datapoints = 0 rra[6].cf = "MAX"
rra[6].rows = 800
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 5.9830000000e+01
rra[6].cdp_prep[0].unknown_datapoints = 1 rra[6].cdp_prep[1].value =
5.9830000000e+01 rra[6].cdp_prep[1].unknown_datapoints = 1 rra[7].cf = "MAX"
rra[7].rows = 800
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 5.9830000000e+01
rra[7].cdp_prep[0].unknown_datapoints = 193 rra[7].cdp_prep[1].value =
5.9830000000e+01 rra[7].cdp_prep[1].unknown_datapoints = 193 s00c161# 

It seems no data is getting stored in there. The updates are happening, but
the fetch results in NaN.
Here is the logfile snippet with base,snpo, and log turned on:

2006-01-19 12:09:06 -- --base: Populate Target object by polling SNMP and
external Datasources
2006-01-19 12:09:06 -- --snpo: run snmpget from
1.3.6.1.4.1.9.9.109.1.1.1.1.5&1.3.6.1.4.1.9.9.109.1.1.1.1.5:XXXXX at SSA-CAM-OP
S-W24E03
2006-01-19 12:09:07 -- --snpo: simple If: .9
2006-01-19 12:09:07 -- --snpo: simple If: .9
2006-01-19 12:09:07 -- --snpo: SNMPGet from XXXXX at SSA-CAM-OPS-W24E03::10:::2
-- 1.3.6.1.4.1.9.9.109.1.1.1.1.5.9,1.3.6.1.4.1.9.9.109.1.1.1.1.5.9
2006-01-19 12:09:07 -- --snpo: SNMPfound -- '58', '58'
2006-01-19 12:09:07 -- --base: Act on Router/Target ssa-cam-ops-w24e03_1_cpu
2006-01-19 12:09:07 -- --base: Get Current values: in:58, out:58, up:undef,
name:undef, time:1137690547
2006-01-19 12:09:07 -- --base: Create Graphics
2006-01-19 12:09:07 -- --base: start RRDtool section
2006-01-19 12:09:07 -- --base: maxi:100, maxo:100
2006-01-19 12:09:07 -- --log: Called:
RRDs::tune(/data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd -a ds0:100 -a
ds1:100 -d ds0:GAUGE -d ds1:GAUGE)
2006-01-19 12:09:07 -- --log: Calling:
RRDs::update(/data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd,
'1137690547:58:58')
2006-01-19 12:09:07 -- --log: Called: RRDs::last()
2006-01-19 12:09:07 -- --log: Called:
RRDs::fetch(/data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd,'AVERAGE','-s',1137
690547,'-e',1137690547)
2006-01-19 12:09:07 -- --log:   got: NaN/NaN
2006-01-19 12:09:07 -- --base: Check for Thresholds
2006-01-19 12:14:06 -- --base: Populate Target object by polling SNMP and
external Datasources
2006-01-19 12:14:06 -- --snpo: run snmpget from
1.3.6.1.4.1.9.9.109.1.1.1.1.5&1.3.6.1.4.1.9.9.109.1.1.1.1.5:XXXXXX at SSA-CAM-O
PS-W24E03
2006-01-19 12:14:06 -- --snpo: simple If: .9
2006-01-19 12:14:06 -- --snpo: simple If: .9
2006-01-19 12:14:06 -- --snpo: SNMPGet from XXXXX at SSA-CAM-OPS-W24E03::10:::2
-- 1.3.6.1.4.1.9.9.109.1.1.1.1.5.9,1.3.6.1.4.1.9.9.109.1.1.1.1.5.9
2006-01-19 12:14:06 -- --snpo: SNMPfound -- '62', '62'
2006-01-19 12:14:06 -- --base: Act on Router/Target ssa-cam-ops-w24e03_1_cpu
2006-01-19 12:14:06 -- --base: Get Current values: in:62, out:62, up:undef,
name:undef, time:1137690846
2006-01-19 12:14:06 -- --base: Create Graphics
2006-01-19 12:14:06 -- --base: start RRDtool section
2006-01-19 12:14:06 -- --base: maxi:100, maxo:100
2006-01-19 12:14:06 -- --log: Called:
RRDs::tune(/data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd -a ds0:100 -a
ds1:100 -d ds0:GAUGE -d ds1:GAUGE)
2006-01-19 12:14:06 -- --log: Calling:
RRDs::update(/data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd,
'1137690846:62:62')
2006-01-19 12:14:06 -- --log: Called: RRDs::last()
2006-01-19 12:14:06 -- --log: Called:
RRDs::fetch(/data1/mrtg/OPS/ssa-cam-ops-w24e03_1_cpu.rrd,'AVERAGE','-s',1137
690846,'-e',1137690846)
2006-01-19 12:14:06 -- --log:   got: NaN/NaN
2006-01-19 12:14:06 -- --base: Check for Thresholds


Tanya Ruttenberg - RSIS Contractor
OTSO/DNE/NMPEB
tanya.ruttenberg at ssa.gov
410-965-9605

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list