check_snmp - wrong status
Andreas Ericsson
ae at op5.se
Fri Nov 26 01:02:21 CET 2004
Gÿfffff6ran Almvik wrote:
>
> The command /usr/local/nagios/libexec/check_snmp -C public -H
> 10.20.29.50 -o .1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0 -w 33:28 -c 100:34
> -m /root/snmp/mib_files/5.0/sp.mib
>
You'll want to use -w :28 -c :34 instead (as was pointed out by Jan
Scholten).
> When run from command line the result is SNMP OK - 22. When run from
> Nagios the result is SNMP Warning - 22.
>
Run the plugin from command line as the same user nagios is running as,
and do
echo $?
immediately afterward. If you get '0' for output of the echo command,
Nagios will think everything's allright. '1' means warning, '2' means
critical and '3' means unknown. Hyphens won't be output.
> I've tried all possible warn/crit. ranges but end up withthe same
> problem. Anybody got a clue where Nagios gets this funny idea from?
From the return code of the plugin.
> check_snmp version 1.25 (nagios-plugins 200303262200).
>
> Greatful for any help! /G
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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