2011-03-28 10:07:45 -04:00
|
|
|
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
|
2012-12-10 10:49:36 -08:00
|
|
|
check file task-newsblur.log with path /srv/newsblur/logs/newsblur.log
|
2012-10-15 16:32:32 -07:00
|
|
|
if timestamp > 10 minutes then exec "/srv/newsblur/utils/kill_celery.sh"
|
|
|
|
# as uid sclay and gid sclay
|
2011-03-28 10:07:45 -04:00
|
|
|
|
|
|
|
check system task_server
|
2012-10-15 16:32:32 -07:00
|
|
|
if loadavg (1min) > 12 then exec "/srv/newsblur/utils/kill_celery.sh"
|
|
|
|
# as uid sclay and gid sclay
|
|
|
|
if loadavg (5min) > 8 then exec "/srv/newsblur/utils/kill_celery.sh"
|
|
|
|
# as uid sclay and gid sclay
|
2011-03-28 10:07:45 -04:00
|
|
|
|