mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-28 07:56:32 +01:00
update monit
This commit is contained in:
4
monit/data/conf.d/network.cfg
Normal file
4
monit/data/conf.d/network.cfg
Normal 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
|
||||
3
monit/data/conf.d/setting.cfg
Normal file
3
monit/data/conf.d/setting.cfg
Normal file
@@ -0,0 +1,3 @@
|
||||
set httpd port 2812 and
|
||||
use address 0.0.0.0
|
||||
allow admin:monit readonly
|
||||
8
monit/data/conf.d/system.cfg
Normal file
8
monit/data/conf.d/system.cfg
Normal 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
11
monit/data/monitrc
Normal 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
|
||||
Reference in New Issue
Block a user