2013-05-28 18:21:55 -07: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 real-time updates in last 10 minutes, something is wrong
|
2013-05-29 11:00:07 -07:00
|
|
|
check file node-newsblur.log with path /srv/newsblur/logs/unread_counts.log
|
2013-05-28 18:21:55 -07:00
|
|
|
if timestamp > 10 minutes then exec "/srv/newsblur/utils/kill_node.sh"
|
|
|
|
# as uid sclay and gid sclay
|
|
|
|
|
|
|
|
check system node_server
|
|
|
|
if loadavg (1min) > 12 then exec "/srv/newsblur/utils/kill_node.sh"
|
|
|
|
# as uid sclay and gid sclay
|
|
|
|
if loadavg (5min) > 8 then exec "/srv/newsblur/utils/kill_node.sh"
|
|
|
|
# as uid sclay and gid sclay
|
|
|
|
|