Re: [Nagios-devel] RFE Nagios runtime macro max_check_attempts
Posted: Wed Jul 11, 2007 11:12 am
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- ... 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.
>
Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
$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- ... 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.
>
Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]