-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sergio Belkin wrote: | Hi, | | I am using check_snmp plugin and is quite useful, but in some cases | I'd like that "Status Information" in "Status Detail For This Host" | to print only the value, not something as "/usr/bin/snmpget -t 1 -r 5 | -m RAPID-CITY -v 2c -c 'my community' 10.1.0.4:161 | 1.3.6.1.4.1.2272.1.3.1.0"
You need to write a small script to act as your plugin. That script will ~ execute the snmpget or snmpwalk command and interpretate the output for you. It should then set the return code to signal the proper status to nagios and you can select which part of the output will be passed through to nagios as text. If I had a serious need for this I would write a perl script. Hugo. - -- [EMAIL PROTECTED] http://hugo.vanderkooij.org/ PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? Bored? Click on http://spamornot.org/ and rate those images. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFITPEwBvzDRVjxmYERAgRDAKCSB7+JnnGHe/v2wpA+2hXwB4PnLACguJDK g1z8z9YGtnXSarrz/qmOGP8= =HPUL -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Nagios-users mailing list [email protected] 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
