2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-28 07:56:32 +01:00

update monit

This commit is contained in:
kev
2016-10-30 14:39:47 +08:00
parent ebe080bd1f
commit bdde461ab4
6 changed files with 11 additions and 9 deletions

View File

@@ -0,0 +1,4 @@
check network eth0 with interface eth0
if upload > 500 kB/s then alert
if total download > 3 GB in last 2 hours then alert
if total download > 30 GB in last day then alert

View File

@@ -0,0 +1,3 @@
set httpd port 2812 and
use address 0.0.0.0
allow admin:monit readonly

View File

@@ -0,0 +1,8 @@
check system ss.easypi.info
if loadavg (1min) > 4 then alert
if loadavg (5min) > 2 then alert
if memory usage > 80% then alert
if swap usage > 25% then alert
if cpu usage (user) > 70% then alert
if cpu usage (system) > 30% then alert
if cpu usage (wait) > 20% then alert

11
monit/data/monitrc Normal file
View File

@@ -0,0 +1,11 @@
###############################################################################
## Monit control file
###############################################################################
set daemon 30
set logfile /dev/stdout
set pidfile /var/run/monit.pid
set idfile /var/lib/monit/monit.id
set statefile /var/lib/monit/monit.state
set eventqueue basedir /var/lib/monit/events slots 5000
include /etc/monit/conf.d/*.cfg