mirror of
				https://github.com/samuelclay/NewsBlur.git
				synced 2025-11-01 09:09:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			693 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			693 B
		
	
	
	
		
			Text
		
	
	
	
	
	
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 task-newsblur.log with path /srv/newsblur/logs/newsblur.log
 | 
						|
  if timestamp > 10 minutes then exec "/srv/newsblur/utils/kill_celery.sh"
 | 
						|
    # as uid sclay and gid sclay
 | 
						|
 | 
						|
check system task_server
 | 
						|
  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
 | 
						|
 |