Guest User

monitrc

a guest
Oct 2nd, 2015
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. set daemon 60
  2. with start delay 300
  3. set pidfile /usr/local/monit/var/monit.pid
  4. set statefile /usr/local/monit/var/monit.state
  5. set idfile /usr/local/monit/var/monit.id
  6.  
  7.  
  8. set mailserver smtp.gmail.com port 587
  9. username "mvveelen@gmail.com" password "geheimwwhihihihi"
  10. using tlsv1
  11. with timeout 5 seconds
  12. set alert mvveelen@gmail.com
  13.  
  14. set eventqueue
  15. basedir /usr/local/monit/var/events
  16. slots 100
  17.  
  18. set httpd
  19. port 2812
  20. use address 0.0.0.0
  21. allow localhost
  22. allow 192.168.0.2
  23. allow admin:ikhovaka1
  24.  
  25. #include files in subdir
  26. include /usr/local/monit/var/monit.d/*
  27.  
  28. check process domoticz with pidfile /usr/local/domoticz/var/domoticz.pid
  29. start program = "/usr/syno/bin/synopkg start domoticz"
  30. stop program = "/usr/syno/bin/synopkg stop domoticz"
  31. if failed host localhost port 8084 then restart
  32. if cpu is greater than 40% for 2 cycles then alert
  33. if 3 restarts within 5 cycles then timeout
  34. if memory > 110 MB then restart
  35.  
  36. check process nzbget with pidfile /usr/local/nzbget/var/nzbget.pid
  37. start program = "/var/packages/nzbget/scripts/start-stop-status start"
  38. stop program = "/var/packages/nzbget/scripts/start-stop-status stop"
  39. if failed host localhost port 6999 then restart
  40. if cpu is greater than 60% for 30 cycles then alert
  41. if 3 restarts within 5 cycles then timeout
  42. if memory > 110 MB then restart
  43.  
  44. check process SickBeard-Custom with pidfile /usr/local/sickbeard-custom/var/sickbeard-custom.pid
  45. start program = "/var/packages/sickbeard-custom/scripts/start-stop-status start"
  46. stop program = "/var/packages/sickbeard-custom/scripts/start-stop-status stop"
  47. if failed host localhost port 9222 then restart
  48. if cpu is greater than 40% for 2 cycles then alert
  49. if 3 restarts within 5 cycles then timeout
  50. if memory > 110 MB then restart
  51.  
  52. #check process AutoSub-BootstrapBill with pidfile /usr/local/autoSub-bootstrapBill/var/AutoSub-BootstrapBill.pid
  53. # start program = "/var/packages/AutoSub-BootstrapBill/scripts/start-stop-status start"
  54. # stop program = "/var/packages/AutoSub-BootstrapBill/scripts/start-stop-status stop"
  55. # if failed host localhost port 8111 then restart
  56. # if cpu is greater than 40% for 2 cycles then alert
  57. # if 3 restarts within 5 cycles then timeoute if memory > 110 MB then restart
Add Comment
Please, Sign In to add comment