snmpwalk as external command or customize "Status information"

Sergio Belkin sebelk at gmail.com
Fri May 30 20:45:19 CEST 2008


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"

Because of this I thought to use snmpwalk as external command, so I
add an entry in commands.cfg as follows:

define command{
        command_name    snmpwalk
        command_line    $USER5$/snmppwalk -v2c -c "mi community"
$HOSTADDRESS$ -Oqv  $ARGS1$
        }

But is not working it outputs:
"(Return code of 127 is out of bounds - plugin may be missing)"

What's wrong with this? A suitable solution could be customize the
output in "Status Information" but how could I do that?

Thanks in advance!!
-- 
--
Open Kairos http://www.openkairos.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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