host status in nagios/var/status.dat

Colin McKinnon colin.mckinnon at gmail.com
Fri Mar 21 14:41:27 CET 2008


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.
-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM d s+:+ a+ C+++(---)$ UL+++ P+(--) L+++ E--- W+++ N++ w-- PS++(+++())
t+ 5+ X R- tv-- b++ DI++ D e+++ h----
------END GEEK CODE BLOCK------

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