RFE Nagios runtime macro max_check_attempts

Ethan Galstad nagios at nagios.org
Wed Jul 11 21:12:27 CEST 2007


Great idea!  I'll add two macros in 3.0b1: $MAXHOSTATTEMPTS$ and 
$MAXSERVICEATTEMPTS$


GJP wrote:
> Hi All,
> 
> I would like to propose the creation of a macro, which should be available 
> during runtime and represents the max_check_attempts from a service 
> definition. I came to this when extending the auto restart script from the 
> documentation. It's extensively described in the following article:
> 
> http://www.gp-net.nl/2007/05/12/nagios-remote-eventhandling-for-init-scripts
> 
> The article decribes how one can attempt the restart of any service in the 
> init.d directory, as long as the service_description name is identical to 
> daemon start/stop script in the init.d directory on the client.
> 
> The problem (hence this request) is that for every different 
> max_check_attempts value a different evenhandler needs to be created, 
> attempting a restart on the last 'soft down'. So if the macro is enabled, the 
> script running on the client can subtract 1 from the max_check_attempts and 
> you'll always have the forlast step for a restart attempt before notifies 
> start rolling out.
> 
> I hope my contribution is considered. Keep up the brilliant work guys!
> 
> Kind regards,
> 
> Gerard.
> 


Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org

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




More information about the Developers mailing list