[Top][All Lists]

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

Re: Multitask in Monit?

From: Callum Macdonald
Subject: Re: Multitask in Monit?
Date: Mon, 23 Jul 2012 13:32:27 +0200

As far as I'm aware, the standard approach to do this is either to put
all your commands in a single script and execute that with exec, or to
construct a one-liner in exec something like
exec 'killall -9 httpd; killall -9 mysqld; service mysqld start; service
httpd start'

If you call an exec it will automatically generate an alert, so no need
for the alert and exec separately.

Cheers - Callum.

On Mon, 2012-07-23 at 09:55 +0700, Tu Tran wrote:
> Hi monit...ers!
> I don't know how to use multitask in monit, please show me the syntax!
> Ex:
> If CPU (used) > 90 %
> monit will do step by step
> killall -9 httpd
> killall -9 mysqld
> service mysqld start
> service httpd start
> alert
> I'm using Centos5 and monit 5.4
> Thanks so much!
> --
> To unsubscribe:

reply via email to

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