snmpwalk as external command or customize "Status information"
Thomas Guyot-Sionnest
dermoth at aei.ca
Mon Jun 2 12:49:22 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 30/05/08 02:45 PM, 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"
>
> 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$
> }
Looks like you have a typo in here... is it the same in your config?
"snmppwalk",
also I assume $USER5$ resolver to the path where you have the snmpwalk
command...
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIQ9Ay6dZ+Kt5BchYRAgCUAKCc6tewjpXiOT84RuLAtB67GU8WqwCgtY7J
y7tO4qj5jRzl6+Cn5SWcJKk=
=yC1Q
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
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