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- ... it-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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]