[Nagiosplug-help] State set to UNKNOWN instead of OK

Fredrik Stridfeldt stridfeldt at gmail.com
Tue Feb 24 16:49:56 CET 2009


Hi,

Yes $? eq 0 on both sides.

>From appserver:
libexec/check_disk -w 400 -c 220 -p /
DISK OK - free space: / 13998 MB (82%);| /=3149MB;16747;16927;0;17147
bash-2.05$ echo $?
0

>From Nagiosbox:
-bash-3.2$ /usr/local/nagios/libexec/check_by_ssh -H 10.194.145.142 -t 60 -l
"nagios" -C "libexec/check_disk -w 400 -c 220 -p /"
DISK OK - free space: / 13998 MB (82%);| /=3149MB;16747;16927;0;17147
-bash-3.2$ echo $?
0

/Fredrik

On Tue, Feb 24, 2009 at 4:33 PM, Marc Powell <marc at ena.com> wrote:

>
> On Feb 24, 2009, at 9:13 AM, Fredrik Stridfeldt wrote:
>
> > This drives me crazy!!!
> >
> > [1235486864] SERVICE ALERT: absaus0180;ssh_disk_root;UNKNOWN;SOFT;
> > 1;DISK OK - free space: / 13999 MB (82%):
> > [1235486924] SERVICE ALERT: absaus0180;ssh_disk_root;UNKNOWN;SOFT;
> > 2;DISK OK - free space: / 13999 MB (82%):
> > [1235486994] SERVICE ALERT: absaus0180;ssh_disk_root;UNKNOWN;HARD;
> > 3;DISK OK - free space: / 13999 MB (82%):
> >
> > I get OK answer but nagios set to UNKOWN ..wtf!
>
> The plugin, or the transport you are using to execute the plugin, is
> returning an exit code of 3, not 0. Can you run the plugin
> successfully on the remote host as the user nagios is running it as
> and see the correct exit code (echo $?).
>
> Can you run the transport/plugin command combo from the nagios server
> as the nagios user and see the correct exit code?
>
> I strongly suspect one or the other is actually generating an error.
> You'll increase your chances of better answers by including the
> relevant config information (host, service, command definitions and
> information about how you've configured your transport).
>
> --
> Marc
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20090224/e6d0bea4/attachment.html>


More information about the Help mailing list