Just can't get an snmp_oid read to graph.

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
fixit9660
Posts: 5
Joined: Tue Feb 05, 2013 9:52 am
Location: Somerset, UK

Just can't get an snmp_oid read to graph.

Post by fixit9660 »

I've searched and read as much as I can understand, and I just can't get it to graph an snmp read off a Netgear NAS.
As far as I can tell the snmp read is working fine: Getif shows the get result fine (before it crashes with no errors, but that's another problem) and so does the Cacti log:
02/23/2013 01:15:01 PM - CMDPHP: Poller[0] Host[6] DS[28] SNMP: v2: Netgear_NAS, dsname: ds, oid: .1.3.6.1.4.1.4526.18.4.1.2.1, output: 1365
02/23/2013 01:15:01 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'Netgear_NAS', and OID:''
02/23/2013 01:15:01 PM - CMDPHP: Poller[0] Host[6] DS[29] WARNING: Result from SNMP not valid. Partial Result: U
02/23/2013 01:15:01 PM - CMDPHP: Poller[0] Host[6] DS[29] SNMP: v2: Netgear_NAS, dsname: snmp_oid, oid: , output: U

The above is from two attempts:
Line 1 is from the first one where I've tried huge numbers of things like rrdtool tune setting --maximum, etc.
Lines 2,3 and 4 are from a fresh attampt at a completely new graph last night.

The original attempt actually produces a graph with nothing on it, the latest one doesn't even produce a graph.

The original attempt rrd file info shows:
C:\rrdtool>rrdtool info C:\Inetpub\wwwroot\cacti\rra\6\28.rrd
filename = "C:\Inetpub\wwwroot\cacti\rra\6\28.rrd"
rrd_version = "0003"
step = 300
last_update = 1360706701
header_size = 3496
ds[snmp_oid].index = 0
ds[snmp_oid].type = "GAUGE"
ds[snmp_oid].minimal_heartbeat = 600
ds[snmp_oid].min = 0.0000000000e+000
ds[snmp_oid].max = 5.5555555000e+007 <<<<set this manually using rrdtool tune.... which wouldn't acceppt "U"
ds[snmp_oid].last_ds = "1365"
ds[snmp_oid].value = NaN
ds[snmp_oid].unknown_sec = 1
.
.
and an export of the file via cacti shows?:

Title: Netgear NAS - Fan Speed""
Vertical Label: RPM""
Start Date: 22/02/2013 13:35
End Date: 23/02/2013 13:30
Step: 300
Total Rows: 288
Graph ID: 21
Host ID: 6

Date Fan Speed
22/02/2013 13:35 NaN
22/02/2013 13:40 NaN
22/02/2013 13:45 NaN
.
.

and running up the cacti poller level to Debug shows:
02/23/2013 01:40:01 PM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\cacti\rra\6\28.rrd --template ds 1361626801:1365

and looking at the rrd file shows all the enties at -1
C:\rrdtool>rrdtool fetch C:\Inetpub\wwwroot\cacti\rra\6\28.rrd AVERAGE -s 1361577600 -e 1361628000
snmp_oid

1361577900: -1.#IND000000e+000
.
.

...so it looks at though the value read of the NAS Fan speed of 1,365 RPM is getting as far as the file but it doesn't get recorded. I think this is the problem but I don't know why.

Cacti IS producing other graphs quite nicely with no effort, but they're all default/built-in graphs -
I'm completely new to Cacti et al. I don't know much Unix and not much more Windows. I had a server engineer build the server for me. I've just spent 30+ years in Networks and Comms.

I'd really appreciate some help here please.
Cacti Version 0.8.8a
SNMP Version NET-SNMP version: 5.6.1.1
RRDTool Version RRDTool 1.4.x
PHP Version 5.3.17
Windows Server 2003 SE SP2
AMD Athlon 64 X2 6400+ 3.2Ghz
2Gn RAM
nVidia GeForce 8400GS
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Just can't get an snmp_oid read to graph.

Post by BSOD2600 »

rrdtool should accept NaN for the min/max DS values. what version you using?
fixit9660 wrote:...so it looks at though the value read of the NAS Fan speed of 1,365 RPM is getting as far as the file but it doesn't get recorded. I think this is the problem but I don't know why.
Agreed. After running rrdtool tune command, is the rrd file still showing NaN for the value field?
fixit9660
Posts: 5
Joined: Tue Feb 05, 2013 9:52 am
Location: Somerset, UK

Re: Just can't get an snmp_oid read to graph.

Post by fixit9660 »

Version of rrdtool is "0003" according to rrdtool info:
C:\rrdtool>rrdtool info C:\Inetpub\wwwroot\cacti\rra\6\28.rrd
filename = "C:\Inetpub\wwwroot\cacti\rra\6\28.rrd"
rrd_version = "0003"
.
.
but Cacti Technical Support shows:
RRDTool Version RRDTool 1.4.x
which is what I suspect you're looking for?
is the rrd file still showing NaN for the value field?
The server was running between 1100hrs and 1700hrs on Sat 23/2/2103:

C:\rrdtool>rrdtool info C:\Inetpub\wwwroot\cacti\rra\6\28.rr
filename = "C:\Inetpub\wwwroot\cacti\rra\6\28.rrd"
rrd_version = "0003"
step = 300
last_update = 1360706701
header_size = 3496
ds[snmp_oid].index = 0
ds[snmp_oid].type = "GAUGE"
ds[snmp_oid].minimal_heartbeat = 600
ds[snmp_oid].min = 0.0000000000e+000
ds[snmp_oid].max = 5.5555555000e+007
ds[snmp_oid].last_ds = "1365"
ds[snmp_oid].value = NaN
ds[snmp_oid].unknown_sec = 1
rra[0].cf = "AVERAGE"
rra[0].rows = 600
rra[0].cur_row = 254
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-001
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].cur_row = 477
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-001
rra[1].cdp_prep[0].value = 0.0000000000e+000
rra[1].cdp_prep[0].unknown_datapoints = 1
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].cur_row = 536
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-001
rra[2].cdp_prep[0].value = 0.0000000000e+000
rra[2].cdp_prep[0].unknown_datapoints = 1
rra[3].cf = "AVERAGE"
rra[3].rows = 797
rra[3].cur_row = 781
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-001
rra[3].cdp_prep[0].value = 0.0000000000e+000
rra[3].cdp_prep[0].unknown_datapoints = 265
rra[4].cf = "MIN"
rra[4].rows = 600
rra[4].cur_row = 35
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-001
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[5].cf = "MIN"
rra[5].rows = 700
rra[5].cur_row = 168
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-001
rra[5].cdp_prep[0].value = 1.#INF000000e+000
rra[5].cdp_prep[0].unknown_datapoints = 1
rra[6].cf = "MIN"
rra[6].rows = 775
rra[6].cur_row = 389
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-001
rra[6].cdp_prep[0].value = 1.#INF000000e+000
rra[6].cdp_prep[0].unknown_datapoints = 1
rra[7].cf = "MIN"
rra[7].rows = 797
rra[7].cur_row = 180
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-001
rra[7].cdp_prep[0].value = 1.#INF000000e+000
rra[7].cdp_prep[0].unknown_datapoints = 265
rra[8].cf = "MAX"
rra[8].rows = 600
rra[8].cur_row = 133
rra[8].pdp_per_row = 1
rra[8].xff = 5.0000000000e-001
rra[8].cdp_prep[0].value = NaN
rra[8].cdp_prep[0].unknown_datapoints = 0
rra[9].cf = "MAX"
rra[9].rows = 700
rra[9].cur_row = 547
rra[9].pdp_per_row = 6
rra[9].xff = 5.0000000000e-001
rra[9].cdp_prep[0].value = -1.#INF000000e+000
rra[9].cdp_prep[0].unknown_datapoints = 1
rra[10].cf = "MAX"
rra[10].rows = 775
rra[10].cur_row = 11
rra[10].pdp_per_row = 24
rra[10].xff = 5.0000000000e-001
rra[10].cdp_prep[0].value = -1.#INF000000e+000
rra[10].cdp_prep[0].unknown_datapoints = 1
rra[11].cf = "MAX"
rra[11].rows = 797
rra[11].cur_row = 603
rra[11].pdp_per_row = 288
rra[11].xff = 5.0000000000e-001
rra[11].cdp_prep[0].value = -1.#INF000000e+000
rra[11].cdp_prep[0].unknown_datapoints = 265
rra[12].cf = "LAST"
rra[12].rows = 600
rra[12].cur_row = 466
rra[12].pdp_per_row = 1
rra[12].xff = 5.0000000000e-001
rra[12].cdp_prep[0].value = NaN
rra[12].cdp_prep[0].unknown_datapoints = 0
rra[13].cf = "LAST"
rra[13].rows = 700
rra[13].cur_row = 327
rra[13].pdp_per_row = 6
rra[13].xff = 5.0000000000e-001
rra[13].cdp_prep[0].value = NaN
rra[13].cdp_prep[0].unknown_datapoints = 1
rra[14].cf = "LAST"
rra[14].rows = 775
rra[14].cur_row = 646
rra[14].pdp_per_row = 24
rra[14].xff = 5.0000000000e-001
rra[14].cdp_prep[0].value = NaN
rra[14].cdp_prep[0].unknown_datapoints = 1
rra[15].cf = "LAST"
rra[15].rows = 797
rra[15].cur_row = 571
rra[15].pdp_per_row = 288
rra[15].xff = 5.0000000000e-001
rra[15].cdp_prep[0].value = NaN
rra[15].cdp_prep[0].unknown_datapoints = 265


C:\rrdtool>rrdtool fetch C:\Inetpub\wwwroot\cacti\rra\6\28.rrd AVERAGE -s 1361617200 -e 1361638800
snmp_oid

1361617500: -1.#IND000000e+000
1361617800: -1.#IND000000e+000
1361618100: -1.#IND000000e+000
1361618400: -1.#IND000000e+000
1361618700: -1.#IND000000e+000
1361619000: -1.#IND000000e+000
1361619300: -1.#IND000000e+000
1361619600: -1.#IND000000e+000
1361619900: -1.#IND000000e+000
1361620200: -1.#IND000000e+000
1361620500: -1.#IND000000e+000
1361620800: -1.#IND000000e+000
1361621100: -1.#IND000000e+000
1361621400: -1.#IND000000e+000
1361621700: -1.#IND000000e+000
1361622000: -1.#IND000000e+000
1361622300: -1.#IND000000e+000
1361622600: -1.#IND000000e+000
1361622900: -1.#IND000000e+000
1361623200: -1.#IND000000e+000
1361623500: -1.#IND000000e+000
1361623800: -1.#IND000000e+000
1361624100: -1.#IND000000e+000
1361624400: -1.#IND000000e+000
1361624700: -1.#IND000000e+000
1361625000: -1.#IND000000e+000
1361625300: -1.#IND000000e+000
1361625600: -1.#IND000000e+000
1361625900: -1.#IND000000e+000
1361626200: -1.#IND000000e+000
1361626500: -1.#IND000000e+000
1361626800: -1.#IND000000e+000
1361627100: -1.#IND000000e+000
1361627400: -1.#IND000000e+000
1361627700: -1.#IND000000e+000
1361628000: -1.#IND000000e+000
1361628300: -1.#IND000000e+000
1361628600: -1.#IND000000e+000
1361628900: -1.#IND000000e+000
1361629200: -1.#IND000000e+000
1361629500: -1.#IND000000e+000
1361629800: -1.#IND000000e+000
1361630100: -1.#IND000000e+000
1361630400: -1.#IND000000e+000
1361630700: -1.#IND000000e+000
1361631000: -1.#IND000000e+000
1361631300: -1.#IND000000e+000
1361631600: -1.#IND000000e+000
1361631900: -1.#IND000000e+000
1361632200: -1.#IND000000e+000
1361632500: -1.#IND000000e+000
1361632800: -1.#IND000000e+000
1361633100: -1.#IND000000e+000
1361633400: -1.#IND000000e+000
1361633700: -1.#IND000000e+000
1361634000: -1.#IND000000e+000
1361634300: -1.#IND000000e+000
1361634600: -1.#IND000000e+000
1361634900: -1.#IND000000e+000
1361635200: -1.#IND000000e+000
1361635500: -1.#IND000000e+000
1361635800: -1.#IND000000e+000
1361636100: -1.#IND000000e+000
1361636400: -1.#IND000000e+000
1361636700: -1.#IND000000e+000
1361637000: -1.#IND000000e+000
1361637300: -1.#IND000000e+000
1361637600: -1.#IND000000e+000
1361637900: -1.#IND000000e+000
1361638200: -1.#IND000000e+000
1361638500: -1.#IND000000e+000
1361638800: -1.#IND000000e+000
1361639100: -1.#IND000000e+000

C:\rrdtool>

Thanks,

Andy.
Cacti Version 0.8.8a
SNMP Version NET-SNMP version: 5.6.1.1
RRDTool Version RRDTool 1.4.x
PHP Version 5.3.17
Windows Server 2003 SE SP2
AMD Athlon 64 X2 6400+ 3.2Ghz
2Gn RAM
nVidia GeForce 8400GS
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Just can't get an snmp_oid read to graph.

Post by BSOD2600 »

fixit9660 wrote:Version of rrdtool is "0003" according to rrdtool info:
C:\rrdtool>rrdtool info C:\Inetpub\wwwroot\cacti\rra\6\28.rrd
filename = "C:\Inetpub\wwwroot\cacti\rra\6\28.rrd"
rrd_version = "0003"
simply running rrdtool at the command prompt will show the exact version.

As for your ongoing updating problem... are you sure the NTFS permissions are correctly set? Both the web server and scheduled task users require Modify permissions on \cacti\rra\ folder. As a test, take the latest rrdtool update command from the cacti.log and manually run it yourself from an Admin command prompt. then check the rrd file with the info and average command if it got stored.
fixit9660
Posts: 5
Joined: Tue Feb 05, 2013 9:52 am
Location: Somerset, UK

Re: Just can't get an snmp_oid read to graph.

Post by fixit9660 »

The rest of the post, and the Signature have all the version details.

C:\rrdtool>C:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\cacti\rra\6\28.rrd --template ds 1361626801:1365
ERROR: unknown DS name 'ds'

That doesn't look good.
Cacti Version 0.8.8a
SNMP Version NET-SNMP version: 5.6.1.1
RRDTool Version RRDTool 1.4.x
PHP Version 5.3.17
Windows Server 2003 SE SP2
AMD Athlon 64 X2 6400+ 3.2Ghz
2Gn RAM
nVidia GeForce 8400GS
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Just can't get an snmp_oid read to graph.

Post by BSOD2600 »

fixit9660 wrote:C:\rrdtool>C:/rrdtool/rrdtool.exe update C:\Inetpub\wwwroot\cacti\rra\6\28.rrd --template ds 1361626801:1365
ERROR: unknown DS name 'ds'

That doesn't look good.
Per the rrdtool info output from above, the DS (aka data source) is called snmp_oid.
Rebuild the cacti poller cache for good measure.

Worst case, delete the rrd file so cacti properly recreates it. If you needed to change the DS max field, dont forget to increase it first in the Data Template first.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests