Hi,

this syntax should work in monit-4.8.1 as well ... tested on this config:

--8<--
check process ssh with pidfile /var/run/sshd.pid
  start program = "/etc/init.d/sshd start"
  stop program = "/etc/init.d/sshd stop"
if failed port 22 with timeout 120 seconds for 3 times within 5 cycles then restart
  alert [EMAIL PROTECTED]
--8<--

can you send the copy of your monit configuration in the attachment? (don't cut&paste)

Thanks,
Martin


J. Félix Ontañón wrote:
El Mon, 5 Feb 2007 11:10:25 -0500
Marshal Newrock <[EMAIL PROTECTED]> escribió:

What version of monit are you running?  When I set up monit recently,
I wrote my configuration file according to the documentation, but
still got a syntax error.  Upgrading from 4.8.1 to 4.8.2 fixed that,
though.

I'm running 4.8.1, so upgrading to 4.8.2, will my conf. simply works ?
Thanks !


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


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

Reply via email to