Monit

Home » Asterisk Users » Monit
Asterisk Users 2 Comments

Hi list , I’m trying to run monit with asterisk, starting as simple

# My PBX Asterisk

check process asterisk with pidfile /var/run/asterisk/asterisk.pid start program = “/etc/init.d/asterisk start” with timeout 60 seconds stop program = “/etc/init.d/asterisk stop” with timeout 60 seconds if failed host 127.0.0.1 port 5038 then restart if 5 restarts within 5 cycles then timeout

when I log in (monit interface) I see the status of asterisk is “NOT MONITORED”

port 5038 is ready

netstat -an | grep 5038

tcp 0 0 127.0.0.1:5038 0.0.0.0:*
LISTEN

someone on the list who is running successfully?, I am using asterisk
11.15 With CentOS 6.5 x64

regards list.

2 thoughts on - Monit

  • ricky gutierrez wrote:

    I use monit, but I only watch the pid

    check process asterisk with pidfile /var/run/asterisk/asterisk.pid

    start program = “/usr/sbin/service asterisk start”
    stop program = “/usr/sbin/service asterisk stop”

    Doug