I have monit-5 beta 3 and dont understand this configuration:
THIS WORK (check change of pid and script /root/parar.sh run)
check process asterisk_pid with pidfile /var/run/asterisk.pid
if changed ppid within 3 cycles then exec '/root/parar.sh'
check process asterisk with pidfile /var/run/asterisk.pid
start program = "/etc/init.d/asterisk start"
stop program = "/etc/init.d/asterisk stop"
if 4 restarts within 4 cycles then timeout
# if changed ppid within 3 cycles then exec '/root/parar.sh'
if failed port 5060 type udp protocol sip with target
"address@hidden:5060" and maxforward 3
for 1 cycle then restart
THIS NOT WORK (dont check change of pid and script /root/parar.sh
dont run)
#check process asterisk_pid with pidfile /var/run/asterisk.pid
# if changed ppid within 3 cycles then exec '/root/parar.sh'
check process asterisk with pidfile /var/run/asterisk.pid
start program = "/etc/init.d/asterisk start"
stop program = "/etc/init.d/asterisk stop"
if 4 restarts within 4 cycles then timeout
if changed ppid within 3 cycles then exec '/root/parar.sh'
if failed port 5060 type udp protocol sip with target
"address@hidden:5060" and maxforward 3
for 1 cycle then restart
Whats problem ?
___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A
Embratel tem
tarifas muito baratas esperando por você. Aproveite!
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general