[SOLVED]Generic OID not graphing in 0.8.7

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
jrohr
Posts: 23
Joined: Wed Sep 12, 2007 2:38 pm

[SOLVED]Generic OID not graphing in 0.8.7

Post by jrohr »

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" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Max\:%8.0lf\n" \
LINE2:b#FFFF00:"External Temp" \
GPRINT:b:LAST:"Current\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"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
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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?
jrohr
Posts: 23
Joined: Wed Sep 12, 2007 2:38 pm

Post by jrohr »

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?
Attachments
poller_item.xls
(40 KiB) Downloaded 109 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Try clearing your poller cache and see if the full OIDs are stored.
jrohr
Posts: 23
Joined: Wed Sep 12, 2007 2:38 pm

Post by jrohr »

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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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?
jrohr
Posts: 23
Joined: Wed Sep 12, 2007 2:38 pm

Post by jrohr »

It's in the poller cache:

SNMP Version: 2, Community: public, OID: .1.3.6.1.4.1.20916.1.2.1.1.6.0
RRD: c:\Inetpub\wwwroot\cacti\rra\room_alert_ra_ext_temp_37.rrd

But nothing in the SNMP cache for that host except default ones like "SNMP - Interface Statistics". Should it be listed here as well?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

yes, it should be listed.
jrohr
Posts: 23
Joined: Wed Sep 12, 2007 2:38 pm

Post by jrohr »

Figured it out!

I had to remove the SNMP version from both Data Templates that I created. Thanks for the help.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests