Hi everyone !!

I would like to monitor a service port with 2min timeout and only
restart the service when it fails 3 times in 5 cycles.

It seems that the monitrc command below doesn't work...

check process my_service with pidfile "mypidfile" 
start = "start_program" 
stop = "stop_program" 
if failed port 10000 with timeout 120 seconds for 3 times within 5
cycles then restart 
alert [EMAIL PROTECTED]

... because executing:

/etc/monit> monit -t monitrc 
/etc/monit/monitrc:391: Error: syntax error '3'

I ensure that line 391 matchs the if statement.

What is happening? If my configuration is wrong, What is the way to
reach my objetive?

Thanks !


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

Reply via email to