-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/11/09 12:35 PM, David Krider wrote:
> On Mon, 2009-11-16 at 18:15 -0500, Thomas Guyot-Sionnest wrote:
>> The problem is that check_snmp parses the output from snmpget and it
>> appears that when you load the MIB it detects the result as a string (if
>> you post the full debug output (-vvv switch) I will be able to confirm).
> 
> Just because you asked. I'm not all that worried about it. The MIB is
> obviously reporting an INTEGER value, but getting the units back is
> confusing the issue.
> 
> 
> temporary ~ # /usr/lib/nagios/plugins/check_snmp -vvv -H 10.1.25.11 -m
> EATON-PWR-MTR-MIB -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
> /usr/bin/snmpget -t 1 -r 5 -m EATON-PWR-MTR-MIB -v 1 -c public
> 10.1.25.11:161  .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1
> EATON-PWR-MTR-MIB::pwrMtrDemandKiloWatts.1 = INTEGER: 26 kilo-watts
> 
> SNMP OK - 26 kilo-watts |

You may be able to get the perfdata again by specifying a warning or
critical threshold. The code changed lately so if it doesn't work with
an older version you may want to try with 1.4.14 (the version I looked at).

Note though that check_snmp runs faster without loading any mibs, which
is an important tuning for large monitoring systems using this plugin.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFLA96c6dZ+Kt5BchYRAm0pAKD/y9sEb3axeFdCRyicAwKnnFvxuQCfUQvm
JCbUrxULCAUWraMHDgcfT2A=
=zmcL
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to