|Subject:||Re: alerting when service is down and then up again?|
|Date:||Mon, 16 Aug 2010 16:56:56 +0200|
The next monit version will allow to customize the service non-existence condition. Changelog excerpt:
* Allow to override default action when service doesn't exist (for example process
is not running, file doesn't exist). Default action is service restart, it can be
customized with following statement now:
if [does] not exist [[<x> times within] <y> cycles] then <action1>
[else if succeeded [[<x> times within] <y> cycles] then <action2>]
For example instead of default restart action:
check file with path /cifs/mydata
if does not exist for 5 cycles then exec "/usr/bin/mount_cifs.sh"
On Aug 16, 2010, at 3:43 PM, Josh Sharpe wrote:
I don't think you read my question. I want to trigger an exec statement when services go up/down - Can I do that?
|[Prev in Thread]||Current Thread||[Next in Thread]|