monit-general
[Top][All Lists]
Advanced

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

Re: [monit] Monitoring rules


From: Martin Pala
Subject: Re: [monit] Monitoring rules
Date: Tue, 22 Dec 2009 22:01:51 +0100

Yes, it is possible. In case of restart action it's not necessary to add 
additional rule with alert as the alert is send on restart too => the line with 
"... then restart" is sufficient.

Martin

On Dec 22, 2009, at 4:28 PM, Varga Levente wrote:

> Hello!
> 
> Can I have more than one monitoring rule for the same check, like:
> 
> check process sshd with pidfile /var/run/sshd.pid
>    start program = "/etc/init.d/ssh start"
>    stop program = "/etc/init.d/ssh stop"
>    if failed host ip.address.or.host port 22 protocol ssh then alert
>    if failed host ip.address.or.host port 22 protocol ssh then restart
> or  would this confuse monit and create havoc? What I want to achieve
> is to alert and restart in the same time.
> Thank you!
> 
> Levi
> 
> -- 
> Lege, lege, relege, ora, labora et invenies.
> 
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/moni





reply via email to

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