monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit] Problem with if changed pid


From: cristhiano
Subject: [monit] Problem with if changed pid
Date: Thu, 18 Sep 2008 14:49:08 -0300
User-agent: Internet Messaging Program (IMP) 3.2.4

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!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]