monit-general
[Top][All Lists]
Advanced

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

Re: Restart Specific Service based on server load


From: Martin Pala
Subject: Re: Restart Specific Service based on server load
Date: Fri, 07 Apr 2006 22:54:03 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205 Debian/1.7.12-1.1

Hi,

you can use the exec action - for example:

 check system myhost.mydomain.tld
    if loadavg (1min) > 10 then exec "/usr/bin/monit restart apache"

Martin


Peter M. Abraham wrote:
Greetings:

I did read the manual, the examples, and tried to search the mailing list archive, so I apologize in advance if I missed the answer to my question in those areas.

From our experience, if the 1-minute server load is over 10 on our Web-only servers, restarting Apache does the trick.

Based on


 check system myhost.mydomain.tld
    if loadavg (1min) > 10 then alert

How would one restart Apache rather than just alert?


Thank you for your time.



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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