2019-12-30 20:25:57 -06:00
|
|
|
###############################################################################
|
|
|
|
## Monit configuration for SONiC host OS
|
|
|
|
##
|
|
|
|
## This includes system-level monitoring as well as processes which
|
|
|
|
## run in the host OS (i.e., not inside a Docker container)
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
check filesystem root-overlay with path /
|
2020-01-10 15:01:24 -06:00
|
|
|
if space usage > 90% for 10 times within 20 cycles then alert
|
2019-12-30 20:25:57 -06:00
|
|
|
|
|
|
|
check filesystem var-log with path /var/log
|
2020-01-10 15:01:24 -06:00
|
|
|
if space usage > 90% for 10 times within 20 cycles then alert
|
2019-12-30 20:25:57 -06:00
|
|
|
|
|
|
|
check system $HOST
|
2020-01-10 15:01:24 -06:00
|
|
|
if memory usage > 90% for 10 times within 20 cycles then alert
|
|
|
|
if cpu usage (user) > 90% for 10 times within 20 cycles then alert
|
|
|
|
if cpu usage (system) > 90% for 10 times within 20 cycles then alert
|
2019-12-30 20:25:57 -06:00
|
|
|
|
|
|
|
check process rsyslog with pidfile /var/run/rsyslogd.pid
|
|
|
|
start program = "/bin/systemctl start rsyslog.service"
|
|
|
|
stop program = "/bin/systemctl stop rsyslog.service"
|
2020-01-10 15:01:24 -06:00
|
|
|
if totalmem > 800 MB for 10 times within 20 cycles then restart
|