Skip to content

Commit

Permalink
[monit] Periodically monitor route consistency (#5085)
Browse files Browse the repository at this point in the history
* Add route_check to mont.

* Switched to units of cycles per comments

* Added comments per Joe's comments.

* Added more comments per Royal's comments.
  • Loading branch information
renukamanavalan authored and abdosi committed Sep 19, 2020
1 parent 883351e commit 7d6e508
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions files/image_config/monit/conf.d/sonic-host
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ 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 10 times within 20 cycles then restart

# route_check.py Verify routes between APPL-DB & ASIC-DB are in sync.
# For any discrepancy, details are logged and a non-zero code is returned
# which would trigger a monit alert.
# Hence for any discrepancy, there will be log messages for "ERR" level
# from both route_check.py & monit.
#
check program routeCheck with path "/usr/bin/route_check.py"
every 5 cycles
if status != 0 then alert

0 comments on commit 7d6e508

Please sign in to comment.