[monit] Restart rsyslog service if rsyslogd consumes > 800 MB memory (#3117)
This commit is contained in:
parent
e5a2beb13b
commit
f14354f003
@ -310,6 +310,10 @@ check system $HOST
|
|||||||
if memory usage > 50% for 5 times within 10 cycles then alert
|
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 (user) > 90% for 5 times within 10 cycles then alert
|
||||||
if cpu usage (system) > 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
|
EOF
|
||||||
|
|
||||||
## Config sysctl
|
## Config sysctl
|
||||||
|
Loading…
Reference in New Issue
Block a user