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

Attachment: pgpaYcIeU9xpN.pgp
Description: PGP signature

Reply via email to