[Nagiosplug-help] Help with SNMP result

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Aug 6 13:45:46 CEST 2008


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

On 06/08/08 04:59 AM, jendan at tiscali.cz wrote:
> Hello,
> I am trying to monitor network printers.
> If i try command snmpwalk -v1 -c public 172.27.200.1 1.3.6.1.2.1.43.10.2.1.4.1.1
>  (which is page count...)
> I get this result: 
> SNMPv2-SMI::2.43.10.2.1.4.1.1 = Counter32: 92770
> 
> My question is how to create the right format of command, something like
> this:
> $USER1$/check_snmp -H $HOSTADDRESS$ ...........................................................
> 
> AND THE RESULT of this command will not be SNMPv2-SMI::2.43.10.2.1.4.1.1
> = Counter32: 92770 
> BUT ONLY THE COUNT......: 92770......is there some selecting command for
> echo or something else how to select only that count which will be shown
> in result of nagios??

Use check_snmp from Nagios-plugins.

Alternatively you could write a plugin in your favourite scripting
language if you need something more complex than simple thresholds - see
http://nagiosplug.sourceforge.net/developer-guidelines.html#PLUGOUTPUT
for more info on the requirements of nagios plugins.

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

iD8DBQFImY7q6dZ+Kt5BchYRAlcwAJsEuC1JgETG+gtK+IaMe1aPZ60LqwCgoj71
JseQsLaok6IjY+KreIkQPgk=
=RB1t
-----END PGP SIGNATURE-----




More information about the Help mailing list