Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set idfile /var/.monit.id
- set statefile /var/.monit.state
- # log file
- set logfile /var/log/monit
- # set daemon mode timeout to 1 minute (10 seconds start delay)
- set daemon 60
- with start delay 10
- # primary mailserver
- set mailserver out.alice.it port 25
- # mail format
- set mail-format { from: info@mazatech.com }
- # receive all alerts
- set alert info@mazatech.com
- set httpd port 2812 and
- allow 0.0.0.0/0.0.0.0
- # login/password to access the web interface
- allow admin:monit
- check process landorsea with pidfile "/var/run/landorsea.pid"
- start = "/etc/init.d/landorsea-daemon start"
- stop = "/etc/init.d/landorsea-daemon stop"
- if failed port 3000 then restart
- if cpu usage > 60% for 2 cycles then alert
- if cpu usage > 98% for 5 cycles then restart
- if 2 restarts within 3 cycles then timeout
- alert info@mazatech.com
- check process influence_regions with pidfile "/var/run/influence_regions.pid"
- start = "/etc/init.d/influence_regions-daemon start"
- stop = "/etc/init.d/influence_regions-daemon stop"
- if failed port 3001 then restart
- if cpu usage > 60% for 2 cycles then alert
- if cpu usage > 98% for 5 cycles then restart
- if 2 restarts within 3 cycles then timeout
- alert info@mazatech.com
- check process mongodb with pidfile "/var/run/mongod.pid"
- start = "/etc/init.d/mongodb-daemon start"
- stop = "/etc/init.d/mongodb-daemon stop"
- if failed port 3002 then restart
- if cpu usage > 75% for 3 cycles then alert
- if cpu usage > 98% for 5 cycles then restart
- if 2 restarts within 3 cycles then timeout
- alert info@mazatech.com
- check process war4cards with pidfile "/var/run/war4cards.pid"
- start = "/etc/init.d/war4cards-daemon start"
- stop = "/etc/init.d/war4cards-daemon stop"
- if failed port 4000 then restart
- if cpu usage > 75% for 3 cycles then alert
- if cpu usage > 98% for 5 cycles then restart
- if 2 restarts within 3 cycles then timeout
- alert info@mazatech.com
- depends on mongodb
- depends on influence_regions
- depends on landorsea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement