monit-general
[Top][All Lists]
Advanced

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

Re: Monit with shell script and reboot


From: Brandon Reeves
Subject: Re: Monit with shell script and reboot
Date: Thu, 17 Nov 2016 14:55:47 +0000

Thanks

So is it possible to do the logic with monit?

Ex if service fails restart then run script or should I do all of it within a shell script? 



On Nov 17, 2016, at 08:24, Bryan Harris <address@hidden> wrote:

I think you might have to do all the logic in your script.

V/r,
Bryan

Sent from my iPhone

On Nov 17, 2016, at 7:57 AM, Brandon Reeves <address@hidden> wrote:

I am new to monit so please link if this has been solved.


The scenario. We are monitoring a process with monit currently. If the service stops, we want monit to attempt to restart the service x times, then run a shell script. If the process stays down, we would like monit to perform an additional action, say run another script, reboot, etc. however if the script comes up we need a different script to be run.


Is this possible?


Thanks

Brandon


reply via email to

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