Skip to content

Commit

Permalink
[monit] Periodically monitor VNET route consistency (#8266)
Browse files Browse the repository at this point in the history
*To run VNET route consistency check periodically.
*For any failure, the monit will raise alert based on return code.
Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
volodymyrsamotiy authored and judyjoseph committed Aug 25, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 50dcc82 commit 055d497
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions files/image_config/monit/conf.d/sonic-host
Original file line number Diff line number Diff line change
@@ -40,3 +40,9 @@ check program diskCheck with path "/usr/local/bin/disk_check.py"

check program container_checker with path "/usr/bin/container_checker"
if status != 0 for 5 times within 5 cycles then alert repeat every 1 cycles

# vnet_route_check.py: tool that verifies VNET routes consistancy between SONiC and vendor SDK DBs.
check program vnetRouteCheck with path "/usr/local/bin/vnet_route_check.py"
every 5 cycles
if status != 0 for 3 cycle then alert repeat every 1 cycles

0 comments on commit 055d497

Please sign in to comment.