Adding checks on AniNIX/Grimoire to Core

This commit is contained in:
DarkFeather 2023-05-30 15:51:36 -05:00
parent 921e45afda
commit 75bf57c131
Signed by: DarkFeather
GPG Key ID: 1CC1E3F4ED06F296
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/watcher-of-watchers"
include "/etc/monit.d/checks/warrant-canary" include "/etc/monit.d/checks/warrant-canary"
include "/etc/monit.d/checks/system" include "/etc/monit.d/checks/grimoire"

View File

@ -1,37 +0,0 @@
user http;
worker_processes 4;
# Logs
error_log logs/error.log;
error_log logs/error.log notice;
error_log logs/error.log info;
events {
worker_connections 1024;
}
http {
include mime.types;
include fastcgi.conf;
default_type application/octet-stream;
server_tokens off;
sendfile on;
keepalive_timeout 65;
gzip on;
# Redirect all HTTP to HTTPS
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
location / {
return 301 https://$host$request_uri;
}
}
include ../conf.d/*.conf;
}