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: Weedy
Subject: Re: can monit act differently after X failed attempts?
Date: Tue, 17 Feb 2015 17:57:13 -0500


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]