Skip to content

Commit

Permalink
[201803][monit] Restart rsyslog service if rsyslogd consumes > 800 MB…
Browse files Browse the repository at this point in the history
… memory (#2963)
  • Loading branch information
jleveque authored and yxieca committed Jun 13, 2019
1 parent 0023fca commit 13b066f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ check system $HOST
if memory usage > 50% for 5 times within 10 cycles then alert
if cpu usage (user) > 90% for 5 times within 10 cycles then alert
if cpu usage (system) > 90% for 5 times within 10 cycles then alert
check process rsyslog with pidfile /var/run/rsyslogd.pid
start program = "/bin/systemctl start rsyslog.service"
stop program = "/bin/systemctl stop rsyslog.service"
if totalmem > 800 MB for 5 times within 10 cycles then restart
EOF

## Config sysctl
Expand Down

0 comments on commit 13b066f

Please sign in to comment.