Graphing custom snmp oids

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
hiptoss
Posts: 3
Joined: Fri Nov 14, 2008 10:19 pm

Graphing custom snmp oids

#1 Post by hiptoss » Fri Nov 21, 2008 8:29 pm

I've written a script and inserted it into my snmpd.conf, and when I walk the oid it returns the expected output:

Code: Select all

[[email protected] ~]# snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.8.1
UCD-SNMP-MIB::extIndex.1 = INTEGER: 1
UCD-SNMP-MIB::extNames.1 = STRING: sfconn
UCD-SNMP-MIB::extCommand.1 = STRING: /usr/bin/perl
UCD-SNMP-MIB::extResult.1 = INTEGER: 0
UCD-SNMP-MIB::extOutput.1 = STRING: 1
UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0)
UCD-SNMP-MIB::extErrFixCmd.1 = STRING: 
What I can't figure out is how I can tell cacti to find extOutput.1 and then graph appropriately. When looking through the cacti log, I see that SPINE sees a value of "U" which is certainly wrong.

Code: Select all

11/21/2008 05:36:01 PM - SPINE: Poller[0] Host[14] DS[528] SNMP: v2: 10.1.18.30, dsname: snmp_oid, oid: .1.3.6.1.4.1.2021.8.1, value: U  
Can anyone point me to docs or lend any help on how I can get this accomplished?

hiptoss
Posts: 3
Joined: Fri Nov 14, 2008 10:19 pm

#2 Post by hiptoss » Fri Nov 21, 2008 9:54 pm

After researching this, I found that extOutput is located at oid .1.3.6.1.4.1.2021.8.1.101

Plugging that into the usual data template seems to work great. The documentation can be found here: http://docs.cacti.net/?q=node/421

Post Reply