Replacing polled SNMP values through lookup table

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

Moderators: Developers, Moderators

Post Reply
Schnark
Posts: 20
Joined: Sun May 23, 2010 5:57 pm

Replacing polled SNMP values through lookup table

Post by Schnark »

Hi All,

I've recently put in the HP server temp monitoring templates which have worked really well except for the location info for the temp sensor that's being passed through by the server is numerical rather than text based.

I've looked through the MIB and I can work out what the values are (e.g. 6 = cpu), but was wondering if someone could please point me in the right direction (Howto is fine) on how to dynamically interpret the SNMP results and re-write it to be text.

Everything else works a treat, I just want to add the icing to the cake.

Code currently is as follows:

<fields>
<hpHealthTempIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.232.6.2.6.8.1.2</oid>
</hpHealthTempIndex>
<hpHealthTempLocale>
<name>Locale of temperature sensor</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.232.6.2.6.8.1.3</oid>
</hpHealthTempLocale>


I plan to re-post the updated files back up here once i've fixed it.

Cheers,

Schnark
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Replacing polled SNMP values through lookup table

Post by noname »

Schnark wrote:I've looked through the MIB and I can work out what the values are (e.g. 6 = cpu), but was wondering if someone could please point me in the right direction (Howto is fine) on how to dynamically interpret the SNMP results and re-write it to be text.
Probably It becomes possible from next major(?) release..
- http://docs.cacti.net/manual:088:3a_advanced_topics.3_data_queries
(See "<rewrite_value>")
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Replacing polled SNMP values through lookup table

Post by TheWitness »

Or use a script query, like ss_host_disk.php.

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?
Schnark
Posts: 20
Joined: Sun May 23, 2010 5:57 pm

Re: Replacing polled SNMP values through lookup table

Post by Schnark »

Thanks will look at the scripted query.
TempGrapher
Posts: 15
Joined: Tue Jun 12, 2012 11:39 am

Re: Replacing polled SNMP values through lookup table

Post by TempGrapher »

Have you managed to get this working? We've been having to manually change the name on all the graphs to get it to display the probe it is monitoring. :cry:
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests