Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 26, 2019 3:43 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Graphing custom snmp oids
PostPosted: Fri Nov 21, 2008 8:29 pm 
Offline

Joined: Fri Nov 14, 2008 10:19 pm
Posts: 3
I've written a script and inserted it into my snmpd.conf, and when I walk the oid it returns the expected output:

Code:
[[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:
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?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2008 9:54 pm 
Offline

Joined: Fri Nov 14, 2008 10:19 pm
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group