Add monitoring basics

This commit is contained in:
2013-04-17 16:25:38 +02:00
parent b6a65d981f
commit 80057b0bf5
10 changed files with 104 additions and 0 deletions
@@ -0,0 +1,26 @@
set daemon 30
set logfile /var/log/monit.log
set idfile /var/lib/monit/id
set statefile /var/lib/monit/state
set eventqueue
basedir /var/lib/monit/events
slots 100
# set mailserver smtp.gmail.com port 587
# username "foo@example.com" password "secret"
# using tlsv1
# with timeout 30 seconds
set alert bterkuile+uflows-server-alert@gmail.com
set httpd port 2812
allow admin:"Monit22Secret"
check system blog_server
if loadavg(5min) > 2 for 2 cycles then alert
if memory > 75% for 2 cycles then alert
if cpu(user) > 75% for 2 cycles then alert
include /etc/monit/conf.d/*