Skip to content

Commit 13b066f

Browse files
jlevequeyxieca
authored andcommitted
[201803][monit] Restart rsyslog service if rsyslogd consumes > 800 MB memory (sonic-net#2963)
1 parent 0023fca commit 13b066f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build_debian.sh

+4
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ check system $HOST
304304
if memory usage > 50% for 5 times within 10 cycles then alert
305305
if cpu usage (user) > 90% for 5 times within 10 cycles then alert
306306
if cpu usage (system) > 90% for 5 times within 10 cycles then alert
307+
check process rsyslog with pidfile /var/run/rsyslogd.pid
308+
start program = "/bin/systemctl start rsyslog.service"
309+
stop program = "/bin/systemctl stop rsyslog.service"
310+
if totalmem > 800 MB for 5 times within 10 cycles then restart
307311
EOF
308312

309313
## Config sysctl

0 commit comments

Comments
 (0)