[patch] Workaround for 'Host DOWN' false-positives
Joerg Linge
pitchfork at ederdrom.de
Mon May 22 12:03:37 CEST 2006
Am Montag 22 Mai 2006 11:39 schrieb Jan Kratochvil:
> > This ist still a quick hack, but it works ;-)
> > This is IMHO the fastest way without parsing status.dat.
>
> Do you have it tested? I do not think it will work. The goal is to reflect
> the field "last_hard_state", not the field "current_state".
> "SERVICESTATEID" unfortunately corresponds to "current_state" while
> "last_hard_state" has no corresponding macro.
This was only a quick example!
$SERVICESTATETYPE$ gets the state type ( HARD/SOFT )
So you can exit with a CRITICAL state if your service is CRITICAL/HARD.
This is not a "ready to run" solution but i think its a possible way.
Jörg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060522/bdc08781/attachment.sig>
More information about the Users
mailing list