Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set daemon 60
- with start delay 300
- set pidfile /usr/local/monit/var/monit.pid
- set statefile /usr/local/monit/var/monit.state
- set idfile /usr/local/monit/var/monit.id
- set mailserver smtp.gmail.com port 587
- username "mvveelen@gmail.com" password "geheimwwhihihihi"
- using tlsv1
- with timeout 5 seconds
- set alert mvveelen@gmail.com
- set eventqueue
- basedir /usr/local/monit/var/events
- slots 100
- set httpd
- port 2812
- use address 0.0.0.0
- allow localhost
- allow 192.168.0.2
- allow admin:ikhovaka1
- #include files in subdir
- include /usr/local/monit/var/monit.d/*
- check process domoticz with pidfile /usr/local/domoticz/var/domoticz.pid
- start program = "/usr/syno/bin/synopkg start domoticz"
- stop program = "/usr/syno/bin/synopkg stop domoticz"
- if failed host localhost port 8084 then restart
- if cpu is greater than 40% for 2 cycles then alert
- if 3 restarts within 5 cycles then timeout
- if memory > 110 MB then restart
- check process nzbget with pidfile /usr/local/nzbget/var/nzbget.pid
- start program = "/var/packages/nzbget/scripts/start-stop-status start"
- stop program = "/var/packages/nzbget/scripts/start-stop-status stop"
- if failed host localhost port 6999 then restart
- if cpu is greater than 60% for 30 cycles then alert
- if 3 restarts within 5 cycles then timeout
- if memory > 110 MB then restart
- check process SickBeard-Custom with pidfile /usr/local/sickbeard-custom/var/sickbeard-custom.pid
- start program = "/var/packages/sickbeard-custom/scripts/start-stop-status start"
- stop program = "/var/packages/sickbeard-custom/scripts/start-stop-status stop"
- if failed host localhost port 9222 then restart
- if cpu is greater than 40% for 2 cycles then alert
- if 3 restarts within 5 cycles then timeout
- if memory > 110 MB then restart
- #check process AutoSub-BootstrapBill with pidfile /usr/local/autoSub-bootstrapBill/var/AutoSub-BootstrapBill.pid
- # start program = "/var/packages/AutoSub-BootstrapBill/scripts/start-stop-status start"
- # stop program = "/var/packages/AutoSub-BootstrapBill/scripts/start-stop-status stop"
- # if failed host localhost port 8111 then restart
- # if cpu is greater than 40% for 2 cycles then alert
- # if 3 restarts within 5 cycles then timeoute if memory > 110 MB then restart
Add Comment
Please, Sign In to add comment