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 -- To unsubscribe: http://lists.nongnu.org/mailman/listinfo/monit-general
