Watch raid status with Monit

This commit is contained in:
Paul-Henri Froidmont 2022-09-09 04:53:16 +02:00
parent 430b78aa84
commit 912d58b8ee
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 6 additions and 2 deletions

View file

@ -64,6 +64,9 @@
if failed port 443 protocol https with timeout 20 seconds then alert
check host webmail with address webmail.banditlair.com
if failed port 443 protocol https with timeout 20 seconds then alert
check program raid-md127 with path "${pkgs.mdadm}/bin/mdadm --misc --detail --test /dev/md127"
if status != 0 then alert
'';
services.minecraft-server = {