Adding checks on AniNIX/Grimoire to Core
This commit is contained in:
parent
921e45afda
commit
75bf57c131
3
roles/Sharingan/files/monit/checks/grimoire
Normal file
3
roles/Sharingan/files/monit/checks/grimoire
Normal 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."
|
@ -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"
|
||||||
|
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user