Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISPConfig
Tools
Commits
d2746c30
Commit
d2746c30
authored
2 years ago
by
Thom
Browse files
Options
Downloads
Patches
Plain Diff
Improve Monit resources config to prevent unneccessary alerts
parent
8d128f03
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup_monit.php
+6
-6
6 additions, 6 deletions
setup_monit.php
with
6 additions
and
6 deletions
setup_monit.php
+
6
−
6
View file @
d2746c30
...
...
@@ -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
!=
''
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment