host status in nagios/var/status.dat

Oliver Hookins oliver.hookins at anchor.com.au
Tue Mar 25 01:16:58 CET 2008


On Fri Mar 21, 2008 at 15:38:29 +0000, Aidan Anderson wrote:
>Colin McKinnon wrote:
>> Hi all,
>>
>> Having looked at what was avilable (NLG, centreon...) I decided to
>> write my own front end for Nagios. This proved to be quite
>> straightforward (except for sorting out the locking semantics in PHP -
>> but that's another story).
>>
>> The only problem I'm having is that while the status reported in
>> status.dat for services matches the output from the probe
>> (0=OK,1=warn,2=crit,3=unknown) for hosts it seems to record a status
>> of 0 for OK but 1 for critical (down).
>>
>> Is this the way its supposed to work? Or am I missing something?
>>
>> (Nagios 2.10)
>>
>> TIA
>>
>> C.
>>   
>AFAIK this is correct.  With services Nagios needs to know the actual 
>state, e.g. Ok, warn, crit, unknown but with hosts all it needs to know 
>is if the host is UP or DOWN hence 0 or 1.

Kinda...

specifically:
 0 - OK
 1 - DOWN
 2 - UNREACHABLE 

-- 
Regards,
Oliver Hookins
Anchor Systems

-------------------------------------------------------------------------
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