Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 20 lines (14 sloc) 0.697 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
set daemon 120
 
set logfile /var/log/monit.log

set eventqueue
     basedir /var/monit # set the base directory where events will be stored
     slots 100 # optionally limit the queue size

# If no feeds have been fetched in the last 10 minutes, something is wrong
check file app-newsblur.log with path /srv/newsblur/logs/newsblur.log
  if timestamp > 10 minutes then exec "/srv/newsblur/utils/kill_gunicorn.sh"
    # as uid sclay and gid sclay

check system app_server
  if loadavg (1min) > 12 then exec "/srv/newsblur/utils/kill_gunicorn.sh"
    # as uid sclay and gid sclay
  if loadavg (5min) > 8 then exec "/srv/newsblur/utils/kill_gunicorn.sh"
    # as uid sclay and gid sclay

Something went wrong with that request. Please try again.