Applying a multiplier to check_snmp results
Max
perldork at webwizarddesign.com
Fri Aug 13 01:08:54 CEST 2010
I have written and maintain a perl library that extends Nagios::Plugin
- it is called Nagios::Plugin::SNMP.
It is available on CPAN and while it does not take the complexity out
of SNMP data it does simplify writing plugins that retrieve SNMP data.
The team I am on at my job uses it extensively - you might find it
helpful for creating custom plugins tht need to not only retrieve but
also cook SNMP data before doing thresholding on it.
- Max
On 8/12/10, Hall, JC <jhall at iodatacenters.com> wrote:
> I certainly wish I could do that. I'm just a novice.
>
> I can basically accomplish what I want (in regards to multiplying the
> output) with snmpget.
>
> printf "scale=2;%d*0.01\n" $(snmpget -v 1 -c public 192.168.104.37
> .enterprises.6347.1.1.17 -O Qve)|bc
>
> 208.72
>
> Any thoughts surrounding how I could run this as an external command and
> pipe it back into nagios?
>
> -----Original Message-----
> From: Matthew J. Salerno [mailto:vagabond_king at yahoo.com]
> Sent: Thursday, August 12, 2010 2:17 PM
> To: Nagios Users List
> Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results
>
> I ran into the same thing, I ended up writing my own plugins. Just look for
> a
> non binary plugin (perl/python etc) and then hack away.
>
>
>
> ----- Original Message ----
> From: Jim Avery <jim at jimavery.me.uk>
> To: Nagios Users List <nagios-users at lists.sourceforge.net>
> Sent: Thu, August 12, 2010 5:05:42 PM
> Subject: Re: [Nagios-users] Applying a multiplier to check_snmp results
>
> On 12 August 2010 21:27, Hall, JC <jhall at iodatacenters.com> wrote:
>> I have a situation where I would like to apply a multiplier to the
>> results
>> of a check_snmp output.
>>
>> The situation is this:
>>
>> The value received from my check_snmp = 20717. The integer multiplier
>> for
>> this particular OID is 0.01.
>>
>> The output I want reported to Nagios is 20717 x 0.01 = 207.17.
>>
>> Looking through the options of the check_snmp plugin, I can’t determine
>> how
>> I could accomplish this.
>>
>>
>>
>> Any thoughts are appreciated.
>
>
> +1 to that!
>
> I was doing some monitoring on a UPS yesterday and found the current
> is given as an integer which is 10x the Amps, so it would be great to
> be able to divide by 10 (or multiply by whatever) in check_snmp.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any
> issue.
>
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list