[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Checking service with timeout and for 3 cycles
From: |
J. Félix Ontañón |
Subject: |
Checking service with timeout and for 3 cycles |
Date: |
Mon, 5 Feb 2007 17:02:21 +0100 |
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 address@hidden
... 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 !
- Checking service with timeout and for 3 cycles,
J. Félix Ontañón <=