[SOLVED]Generic OID not graphing in 0.8.7
Moderators: Developers, Moderators
[SOLVED]Generic OID not graphing in 0.8.7
Hello,
I'm having problems getting a generic OID graph working in Cacti 0.8.7. Trying to get temperature data from a AVTech Room Alert. I first duplicated the "SNMP-Generic OID template", set data source name for the 2 OIDs I'm graphing. Then created a Graph Item Input for each of these in Graph Templates and created Template Items. Finally, added the graph to my device. At first I was getting 0 values returned, but now getting NAN's. I've gone through the Debug NaN's in graphs troubleshooter and everything checks out ok. I'm getting the following error in cacti.log:
"CMDPHP: Poller[0] Host[6] DS[37] WARNING: Result from SNMP not valid. Partial Result: "
---------------------
When turning on Graph Debug Mode RRDTool says OK (see below). Also, verified RRD files are correct.
RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Room_Alert Temperature" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="c\:/Inetpub/wwwroot/cacti/rra/room_alert_ra_int_temp_38.rrd":ra_int_temp:AVERAGE \
DEF:b="c\:/Inetpub/wwwroot/cacti/rra/room_alert_ra_ext_temp_37.rrd":ra_ext_temp:AVERAGE \
LINE2:a#FF0000:"Internal Temp" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Max\:%8.0lf\n" \
LINE2:b#FFFF00:"External Temp" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Max\:%8.0lf\n"
RRDTool Says:
OK
----------------
Additionally, I can run a snmpget on the OID from a command line and get valid output.
C:\RRDTool>snmpget -v1 -c public <IP address> enterprises.20916.1.2.1.1.5.0
SNMPv2-SMI::enterprises.20916.1.2.1.1.5.0 = INTEGER: 73
C:\RRDTool>snmpget -v1 -c public <IP address> enterprises.20916.1.2.1.1.6.0
SNMPv2-SMI::enterprises.20916.1.2.1.1.6.0 = INTEGER: 71
Anyone had problems with generic OID templates or seen this before?
Thanks
jrohr
OS: WinXP SP2
Webserver: IIS 5.1
Cacti: 0.8.7a
MySQL: 5.0.24a
PHP: 5.1.6
RRDTool: 1.2.15
Net-SNMP: 5.4.1-3
ActivePerl: 5.6.1.638
Poller: cmd.php
I'm having problems getting a generic OID graph working in Cacti 0.8.7. Trying to get temperature data from a AVTech Room Alert. I first duplicated the "SNMP-Generic OID template", set data source name for the 2 OIDs I'm graphing. Then created a Graph Item Input for each of these in Graph Templates and created Template Items. Finally, added the graph to my device. At first I was getting 0 values returned, but now getting NAN's. I've gone through the Debug NaN's in graphs troubleshooter and everything checks out ok. I'm getting the following error in cacti.log:
"CMDPHP: Poller[0] Host[6] DS[37] WARNING: Result from SNMP not valid. Partial Result: "
---------------------
When turning on Graph Debug Mode RRDTool says OK (see below). Also, verified RRD files are correct.
RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Room_Alert Temperature" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="c\:/Inetpub/wwwroot/cacti/rra/room_alert_ra_int_temp_38.rrd":ra_int_temp:AVERAGE \
DEF:b="c\:/Inetpub/wwwroot/cacti/rra/room_alert_ra_ext_temp_37.rrd":ra_ext_temp:AVERAGE \
LINE2:a#FF0000:"Internal Temp" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Max\:%8.0lf\n" \
LINE2:b#FFFF00:"External Temp" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Max\:%8.0lf\n"
RRDTool Says:
OK
----------------
Additionally, I can run a snmpget on the OID from a command line and get valid output.
C:\RRDTool>snmpget -v1 -c public <IP address> enterprises.20916.1.2.1.1.5.0
SNMPv2-SMI::enterprises.20916.1.2.1.1.5.0 = INTEGER: 73
C:\RRDTool>snmpget -v1 -c public <IP address> enterprises.20916.1.2.1.1.6.0
SNMPv2-SMI::enterprises.20916.1.2.1.1.6.0 = INTEGER: 71
Anyone had problems with generic OID templates or seen this before?
Thanks
jrohr
OS: WinXP SP2
Webserver: IIS 5.1
Cacti: 0.8.7a
MySQL: 5.0.24a
PHP: 5.1.6
RRDTool: 1.2.15
Net-SNMP: 5.4.1-3
ActivePerl: 5.6.1.638
Poller: cmd.php
- Attachments
-
- cacti debug.xls
- (27.5 KiB) Downloaded 114 times
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Dump your poller_items table and post.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Here's the poller_item data. I noticed the OIDs are not the entire number.
But in the data template it is the entire number
(i.e. .1.3.6.1.4.1.20916.1.2.1.1.6.0)
Do I need to recreate the data template or something else?
But in the data template it is the entire number
(i.e. .1.3.6.1.4.1.20916.1.2.1.1.6.0)
Do I need to recreate the data template or something else?
- Attachments
-
- poller_item.xls
- (40 KiB) Downloaded 108 times
Try clearing your poller cache and see if the full OIDs are stored.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I cleared the poller cache and now see the full OIDs in the poller_item table. But I'm still getting Partial Result warnings from cmd.php.
12/05/2007 11:18:08 AM - CMDPHP: Poller[0] ASSERT: '42411379<' failed. Recaching host '<ip address>', data query #1
12/05/2007 11:18:10 AM - CMDPHP: Poller[0] Host[6] DS[37] WARNING: Result from SNMP not valid. Partial Result:
12/05/2007 11:18:12 AM - CMDPHP: Poller[0] Host[6] DS[38] WARNING: Result from SNMP not valid. Partial Result:
12/05/2007 11:18:13 AM - SYSTEM STATS: Time:12.7390 Method:cmd.php Processes:1 Threads:N/A Hosts:6 HostsPerProcess:6 DataSources:35 RRDsProc
essed:31
12/05/2007 11:18:14 AM - PCOMMAND: Poller[0] Host[6] WARNING: Recache Event Detected for Host
12/05/2007 11:18:14 AM - RECACHE STATS: RecacheTime:0.2201 HostsRecached:1
12/05/2007 11:18:08 AM - CMDPHP: Poller[0] ASSERT: '42411379<' failed. Recaching host '<ip address>', data query #1
12/05/2007 11:18:10 AM - CMDPHP: Poller[0] Host[6] DS[37] WARNING: Result from SNMP not valid. Partial Result:
12/05/2007 11:18:12 AM - CMDPHP: Poller[0] Host[6] DS[38] WARNING: Result from SNMP not valid. Partial Result:
12/05/2007 11:18:13 AM - SYSTEM STATS: Time:12.7390 Method:cmd.php Processes:1 Threads:N/A Hosts:6 HostsPerProcess:6 DataSources:35 RRDsProc
essed:31
12/05/2007 11:18:14 AM - PCOMMAND: Poller[0] Host[6] WARNING: Recache Event Detected for Host
12/05/2007 11:18:14 AM - RECACHE STATS: RecacheTime:0.2201 HostsRecached:1
Alright, click on DS[37] and see what it points to. Look in your poller cache / snmp cache again to see what DS[37] is trying to poll for the OID. Is it correct?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
yes, it should be listed.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: optimuscream and 3 guests