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.
--
rickygm
http://gnuforever.homelinux.com
ricky gutierrez wrote:> someone on the list who is running successfully?, I am using asterisk > 11.15 With CentOS 6.5 x64I 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 -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
2014-12-29 4:51 GMT-06:00 Doug Lytle <support at drdos.info>:> 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" > > Dougwork fine my friend , thnk -- rickygm http://gnuforever.homelinux.com