Enumerating SNMP return values

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
User avatar
Setarcos
Cacti User
Posts: 143
Joined: Mon Dec 13, 2004 2:55 pm
Location: San Jose, CA
Contact:

Enumerating SNMP return values

Post by Setarcos »

Hi Folks,

Sorry for cross-posting. I gather from the lack of responses in Hep:General that this isn't possible with 0.8.6h:

I am looking to map a return value from an SNMP query to a corresponding entry in a MIB (e.g. enumeration) Thus far I haven't managed to locate a way to do this unless I use a script to do the enumeration for me. Could this be included as a feature in a future release so SNMP XML queries could have either unformatted or enumerated return values?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please be more specific in your request. See if you can place 500 words into it.

Thanks,

TheWitness
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?
User avatar
Setarcos
Cacti User
Posts: 143
Joined: Mon Dec 13, 2004 2:55 pm
Location: San Jose, CA
Contact:

Post by Setarcos »

Sorry there wasn't enough detail in my initial message Larry.

Perhaps I should include a specific case to explain this, as it might help to illustrate the question better.

What I am looking to do is map a return value from the HP/Compaq Insight agent's temperature monitoring table to the value defined in a Look Up Table in the CPQHLTH-MIB. For example:

The raw (unenumerated) values would be:
CPQHLTH-MIB::cpqHeTemperatureLocale.1.1 = INTEGER: 5
CPQHLTH-MIB::cpqHeTemperatureLocale.1.2 = INTEGER: 6
CPQHLTH-MIB::cpqHeTemperatureLocale.1.4 = INTEGER: 10
CPQHLTH-MIB::cpqHeTemperatureLocale.1.5 = INTEGER: 3

The corresponding mapped (enumerated) values would be:
CPQHLTH-MIB::cpqHeTemperatureLocale.1.1 = INTEGER: ioBoard(5)
CPQHLTH-MIB::cpqHeTemperatureLocale.1.2 = INTEGER: cpu(6)
CPQHLTH-MIB::cpqHeTemperatureLocale.1.4 = INTEGER: powerSupply(10)
CPQHLTH-MIB::cpqHeTemperatureLocale.1.5 = INTEGER: system(3)

I would like to use the enumerated results in the title of a graph. Currently, I am using the following section of a XML snmp_query to make the (unenumerated) value available to graphs:
<snip>
<cpqHeTemperatureLocale>
<name>System Board Locale</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.232.6.2.6.8.1.3.1</oid>
</cpqHeTemperatureLocale>
</snip>


Would it be possible to use the return value of CPQHLTH-MIB::cpqHeTemperatureLocale.1.1 (.1.3.6.1.4.1.232.6.2.6.8.1.3.1.1) as 'ioBoard' instead of '5'?
Last edited by Setarcos on Mon Feb 27, 2006 6:40 pm, edited 1 time in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That would require the use of the MIB files and Cacti doesn't currently care about the MIB files. As doing so can slow down the polling process.

As for the future, I don't know.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
Setarcos
Cacti User
Posts: 143
Joined: Mon Dec 13, 2004 2:55 pm
Location: San Jose, CA
Contact:

Post by Setarcos »

No harm in asking I guess :wink:
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests