[Top][All Lists]

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

[monit] monit and active/passive

From: Frank
Subject: [monit] monit and active/passive
Date: Sun, 13 Sep 2009 15:32:10 -0400

I have 2 exactly same monitrc files..


One is active other stays stuck in passive mode...


Any idea why ?


set daemon 60

set logfile /var/log/monit.log

set mailserver

set httpd port 9999



set eventqueue basedir /var/monit/ slots 1000

#following line has been rewritten for the list ;)

set mmonit http://user:address@hidden:myport/collector


# Freeswitch

check process freeswitch with pidfile "/usr/local/freeswitch/log/"


start program "/usr/bin/screen -d -m /usr/local/freeswitch/bin/freeswitch"

#start program "/usr/bin/screen -S freeswitch -d -m /usr/local/freeswitch/bin/freeswitch -nf"

stop program "/usr/local/freeswitch/bin/freeswitch -stop"

if totalmem > 140.0 MB then alert

if totalmem > 180.0 MB for 3 cycles then restart

# Checks sip port on localhost, not always suitable

# if failed port 5060 type UDP then restart

# Checks mod_event_socket on localhost. Maybe more suitable

#if failed port 8021 type TCP then restart

if 5 restarts within 5 cycles then timeout

alert address@hidden

mode active



reply via email to

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