Force Hard State with Passive Checks
Morris, Patrick
patrick.morris at hp.com
Fri May 25 17:14:13 CEST 2007
> I need to implement a certain logic into Nagios that I can't
> figure out if it's possible. What I want to do is check
> processes running on various boxes using the following logic
> when a non-OK state is returned:
>
> Using active checks, I want Nagios to follow the standard
> logic, changing into a SOFT state and upon the
> max_check_attempts reached, going into a hard state.
>
> With passive checks though, I would like to force Nagios into
> a HARD state right away (so notifications are sent out
> immediately). I can't figure out how to either by-pass the
> max_check_attempts, increment it to the max so it switches
> states right away or force into into a hard state right away.
> I looked into writing a script but I can't find any way to
> pass that info back into Nagios either.
Are you using both active and passive checks on the same service? If
not, setting "is_volatile" on your passive checks should do what you
want.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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