User Tools

Site Tools


monitoring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

monitoring [2011/07/12 10:10]
gonium angelegt
monitoring [2012/10/30 10:27] (current)
Line 7: Line 7:
 The monitoring of my nginx server is configured like this: The monitoring of my nginx server is configured like this:
  
-'' + 
-check process nginx with pidfile /var/run/nginx.pid +  check process nginx with pidfile /var/run/nginx.pid 
-  start program = "/etc/init.d/nginx start" +    start program = "/etc/init.d/nginx start" 
-  stop program  = "/etc/init.d/nginx stop" +    stop program  = "/etc/init.d/nginx stop" 
-  group server +    group server 
-  if failed host www.gonium.net port 80 protocol http +    if failed host www.gonium.net port 80 protocol http 
-      and request "/monit/token" then restart +        and request "/monit/token" then restart 
-  if cpu is greater than 60% for 2 cycles then alert +    if cpu is greater than 60% for 2 cycles then alert 
-  if cpu > 80% for 5 cycles then restart +    if cpu > 80% for 5 cycles then restart 
-  if totalmem > 256 MB for 5 cycles then restart +    if totalmem > 256 MB for 5 cycles then restart 
-  if children > 16 then restart +    if children > 16 then restart 
-  if loadavg(5min) greater than 10 for 8 cycles then stop +    if loadavg(5min) greater than 10 for 8 cycles then stop 
-  if 3 restarts within 5 cycles then timeout +    if 3 restarts within 5 cycles then timeout 
-''+
  
 This configuration snippet checks  This configuration snippet checks 
monitoring.1310458222.txt.gz · Last modified: 2012/10/30 10:35 (external edit)