From 0020663934246a1a04477f70e3d79da8220a1e8a Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Tue, 4 Jun 2019 13:20:31 -0700 Subject: [PATCH] [monit] Restart rsyslog service if rsyslogd consumes > 800 MB memory --- build_debian.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index 44c3524ed96..f9236bff367 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -310,6 +310,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