On Feb 17, 2015 10:59 AM, "Bouwser" <[email protected]> wrote:
>
> Hello,
>   I'm relatively new to monit.  I have it setup to monitor a cellular pppd
> process and reset the cell module's USB port by calling a bash script if
the
> process is not running.  I have found that in some cases resetting the USB
> port still does not resolve my issue and a full reboot is required.
>   Is it possible for monit to run a different script if X consecutive
> failures occur?

Just add a second monitoring line with a higher trigger threshold, or
something like this to the end of the block

if 5 restarts within 5 cycles then exec 'reboot'
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to