Thank you.  This was very helpful.

Brent Bouws
TwistHDM, LLC
201 W. Washington
Suite 290
Zeeland, Michigan 49464
616.928.1202
[email protected]<mailto:[email protected]>
www.twisthdm.com<http://www.twisthdm.com/>

From: [email protected] 
[mailto:[email protected]] On Behalf Of Weedy
Sent: Tuesday, February 17, 2015 5:57 PM
To: This is the general mailing list for monit
Subject: Re: can monit act differently after X failed attempts?


On Feb 17, 2015 10:59 AM, "Bouwser" 
<[email protected]<mailto:[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