monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: can monit act differently after X failed attempts?


From: Brent Bouws
Subject: RE: can monit act differently after X failed attempts?
Date: Wed, 18 Feb 2015 19:12:23 +0000

Thank you.  This was very helpful.

 

Brent Bouws

TwistHDM, LLC

201 W. Washington

Suite 290

Zeeland, Michigan 49464

616.928.1202

address@hidden

www.twisthdm.com

 

From: monit-general-bounces+address@hidden [mailto:monit-general-bounces+address@hidden 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" <address@hidden> 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'


reply via email to

[Prev in Thread] Current Thread [Next in Thread]