Adding checks on AniNIX/Grimoire to Core

This commit is contained in:
2023-05-30 15:51:36 -05:00
parent 921e45afda
commit 75bf57c131
3 changed files with 5 additions and 38 deletions

View File

@@ -0,0 +1,3 @@
check program check_grimoire with path "/usr/lib/monitoring-plugins/check_tcp -H localhost -p 5432"
if status != 0 for 1 times within 5 cycles then exec "/usr/bin/systemctl restart grimoire"
if status != 0 for 3 times within 5 cycles then exec "/etc/monit.d/scripts/critical CRITICAL: Grimoire startup is failing -- manual intervention needed."

View File

@@ -1,3 +1,4 @@
include "/etc/monit.d/checks/system"
include "/etc/monit.d/checks/watcher-of-watchers"
include "/etc/monit.d/checks/warrant-canary"
include "/etc/monit.d/checks/system"
include "/etc/monit.d/checks/grimoire"