Skip to content

Instantly share code, notes, and snippets.

@mgax
Created October 16, 2013 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgax/11a667da39262babe14c to your computer and use it in GitHub Desktop.
Save mgax/11a667da39262babe14c to your computer and use it in GitHub Desktop.
The Monit daemon 5.4 uptime: 29d 7h 51m
Process 'php-fastcgi'
status Running
monitoring status Monitored
pid 4228
parent pid 1
uptime 115d 5h 1m
children 0
memory kilobytes 0
memory kilobytes total 0
memory percent 0.0%
memory percent total 0.0%
cpu percent 0.0%
cpu percent total 0.0%
data collected Wed, 16 Oct 2013 23:19:56
Remote Host 'firenze.grep.ro'
status Connection failed
monitoring status Monitored
port response time 0.000s to firenze.grep.ro:80/_ping [HTTP via TCP]
data collected Wed, 16 Oct 2013 23:19:56
Remote Host 'scrabble.grep.ro'
status Online with all services
monitoring status Monitored
port response time 0.190s to scrabble.grep.ro:80/ [HTTP via TCP]
data collected Wed, 16 Oct 2013 23:19:56
System 'system_redcoat.grep.ro'
status Running
monitoring status Monitored
load average [0.16] [0.09] [0.06]
cpu 0.6%us 0.1%sy 0.1%wa
memory usage 324676 kB [65.2%]
swap usage 147308 kB [56.1%]
data collected Wed, 16 Oct 2013 23:19:56
The Monit daemon 5.4 uptime: 29d 7h 48m
Process 'php-fastcgi'
status Running
monitoring status Monitored
pid 4228
parent pid 1
uptime 115d 4h 59m
children 0
memory kilobytes 0
memory kilobytes total 0
memory percent 0.0%
memory percent total 0.0%
cpu percent 0.0%
cpu percent total 0.0%
data collected Wed, 16 Oct 2013 23:17:55
Remote Host 'firenze.grep.ro'
status Online with all services
monitoring status Monitored
port response time 0.000s to firenze.grep.ro:80/_ping [HTTP via TCP]
data collected Wed, 16 Oct 2013 23:17:55
Remote Host 'scrabble.grep.ro'
status Online with all services
monitoring status Monitored
port response time 0.030s to scrabble.grep.ro:80/ [HTTP via TCP]
data collected Wed, 16 Oct 2013 23:17:55
System 'system_redcoat.grep.ro'
status Running
monitoring status Monitored
load average [0.04] [0.05] [0.05]
cpu 0.1%us 0.0%sy 0.2%wa
memory usage 317308 kB [63.8%]
swap usage 147312 kB [56.1%]
data collected Wed, 16 Oct 2013 23:17:55
set daemon 60
set mailserver 127.0.0.1
set alert alex@grep.ro
set eventqueue
basedir /var/lib/monit/queue
slots 100
set logfile /var/log/monit.log
set httpd port 62072
allow localhost
check process php-fastcgi with pidfile /var/run/php-fastcgi.pid
start program = "/etc/init.d/php-fastcgi start"
stop program = "/etc/init.d/php-fastcgi stop"
if cpu > 90% for 2 cycles
then alert
if totalmem > 128.0 MB for 2 cycles
then alert
if children > 20
then alert
check host 'firenze.grep.ro' with address 37.139.15.57
if failed (url http://firenze.grep.ro/_ping
and content == 'mptracker is ok') for 2 cycles
then alert
check host 'scrabble.grep.ro' with address scrabble.grep.ro
if failed (url http://scrabble.grep.ro/
and content == 'Dicționar Scrabble') for 2 cycles
then alert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment