[Nagiosplug-help] Check_snmp - options

Raffaello Poltronieri - Eutelia SpA raffaello.poltronieri at eutelia.it
Tue Sep 15 17:01:19 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
 
Hello,
I'm going to monitor several devices via an SNMP server. Any of them
is identified by a MIB (last 2 digits are device identifier).
If result is 0 or 1, the check is ok, if between 2 and 4 is in warning
state, and over 5 is critical.
The point is that, quering the OID, the result isn't simply a number,
but I receive:

SNMPv2-SMI::enterprises.2378.1.1.1.1.2.1.1.4.30.8 = INTEGER: 6

Is it possible to extract the last digit of the string to have a
status directly by the check, and not to write it to a tmp file and
parse it?

Thank you for support.
Raffaello
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
iD8DBQFKr6w/i3wUUrurBs0RCmcFAJ9A1X/juvm28VNhKu0sNo3ZbF/MzQCcCVNh
HvqffQaQMMInz+AcnPeAnhY=
=uQ/e
-----END PGP SIGNATURE-----





More information about the Help mailing list