[Nagios-devel] RFE Nagios runtime macro max_check_attempts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] RFE Nagios runtime macro max_check_attempts

Post by Guest »

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