plugins always OK with nrpe

Lewis Getschel lgetschel at denver.westerngeco.slb.com
Fri May 13 16:38:25 CEST 2005


You want to exit with an 'error level' number (0-3) not the words.
something like:
echo "CRITICAL - my problem was bla-bla"
exit 2

bmathieu wrote:

>hi
>i write a plugins which is very simple
>
>
>#!/bin/bash
>
>. utils.sh
>
>echo "toto"
>exitstatus="$STATE_CRITICAL"
>exit $exitstatus
>
>and when i call it with check_nrpe it return on nagios server an OK
>state
>i don t understand why.
>with standard plugins i have no problem
>i use nrpe-2.0 , nagios-2.0b
>this check is performed by a distributed server 
>wich send result to the central server with nsca
>thanks
>basile
>
>
>
>
>
>
>  
>

-- 
Lewis Getschel             | Today is done...
WesternGeco                |     Today was fun...
1625 Broadway              |         Tomorrow is another one.
Denver, CO 80202           |
Direct Phone - 303-389-4407|        -- Dr. Seuss --



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
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