Force Hard State with Passive Checks

Marc Powell marc at ena.com
Fri May 25 17:12:18 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Sapon, Dimitry
> Sent: Friday, May 25, 2007 9:31 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Force Hard State with Passive Checks
> 
> Hi there,
> 


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

There's no way to bypass or modify max_check_attempts on the fly,
whatever you set it to is the requirement. I would approach it by
submitting multiple, sequential passive results sufficient to put it
over max_check_attempts. If you're writing a script to do it, you should
look at the Developer documentation on external commands.

--
Marc

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