[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with swap
From: |
Martin Pala |
Subject: |
Re: help with swap |
Date: |
Wed, 21 Mar 2012 11:41:59 +0100 |
Hi,
the swap test can be used in the system-wide "check system" only, you can use
it like this:
--8<--
check system mymachine
if swap usage > 70% then exec "/usr/bin/monit restart apache"
check process apache with pidfile ...
--8<--
Regards,
Martin
On Mar 21, 2012, at 11:38 AM, Simone D. wrote:
> Hi all,
> I'm quite new with monit so I hope you will be able to help me.
>
> I have monit running on my CentOS 5.x and it is checking everything fine. I
> would like to restart apache if swap usage is > 70%, how to do it?
> Have I to put "if swap > 70% then restart" in "check process apache.." or
> there is a way to restart apache in "check system .."?
>
> Thank you very much,
> Simone
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
- help with swap, Simone D., 2012/03/21
- Re: help with swap,
Martin Pala <=