RFE Nagios runtime macro max_check_attempts

GJP gjp at gpnet.nl
Sun Jul 1 10:38:20 CEST 2007


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.


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