Skip to content
Snippets Groups Projects
Commit d2746c30 authored by Thom's avatar Thom :tools:
Browse files

Improve Monit resources config to prevent unneccessary alerts

parent 8d128f03
No related branches found
No related tags found
No related merge requests found
......@@ -375,18 +375,18 @@ check file postfix_rc with path /etc/init.d/postfix
$conf='check system $HOST
if loadavg (5min) > 3 then alert
if loadavg (15min) > 1 then alert
if memory usage > 80% for 4 cycles then alert
if swap usage > 20% for 4 cycles then alert
if memory usage > 80% for 6 cycles then alert
if swap usage > 20% for 6 cycles then alert
# Test the user part of CPU usage
if cpu usage (user) > 80% for 2 cycles then alert
if cpu usage (user) > 80% for 6 cycles then alert
# Test the system part of CPU usage
if cpu usage (system) > 20% for 2 cycles then alert
if cpu usage (system) > 20% for 6 cycles then alert
# Test the i/o wait part of CPU usage
if cpu usage (wait) > 80% for 2 cycles then alert
if cpu usage (wait) > 80% for 4 cycles then alert
# Test CPU usage including user, system and wait. Note that
# multi-core systems can generate 100% per core
# so total CPU usage can be more than 100%
if cpu usage > 200% for 4 cycles then alert';
if cpu usage > 200% for 6 cycles then alert';
}
if ($conf != '') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment