add monit config

This commit is contained in:
Monit 2021-12-05 20:00:11 +00:00
commit a65c9f88f1
5 changed files with 75 additions and 0 deletions

0
README.md Normal file
View File

View File

@ -0,0 +1,6 @@
set httpd
port 2812
allow 127.0.0.1
allow "::1"
allow 192.168.178.0/24
allow admin:buhNu0Oewais

View File

@ -0,0 +1,6 @@
set alert arne@br0tkasten.de
set mailserver mail.lxc.br0tkasten.de using hostname monit.br0tkasten.de
set mail-format {
from: Monit Support <monit@br0tkasten.de>
}
check system monit.br0tkasten.de

View File

@ -0,0 +1,37 @@
check host br0tkasten.de with address br0tkasten.de
if failed ping then alert
check host git.br0tkasten.de with address git.br0tkasten.de
if failed port 443 protocol https then alert
if failed port 4848 protocol ssh then alert
check host ha.br0tkasten.de with address ha.br0tkasten.de
if failed port 443 protocol https then alert
check host jitsi.br0tkasten.de with address jitsi.br0tkasten.de
if failed port 443 protocol https then alert
check host mail.br0tkasten.de with address mail.br0tkasten.de
if failed port 25 protocol smtp then alert
if failed port 143 protocol imap then alert
if failed port 443 protocol https then alert
check host matrix.br0tkasten.de with address matrix.br0tkasten.de
if failed port 443 protocol https then alert
check host motion.br0tkasten.de with address motion.br0tkasten.de
if failed port 443 protocol https then alert
check host mrtg.br0tkasten.de with address mrtg.br0tkasten.de
if failed port 443 protocol https status = 401 then alert
check host www.br0tkasten.de with address www.br0tkasten.de
if failed port 443 protocol https then alert
check host www.familienhilfe-baeumler.de with address www.familienhilfe-baeumler.de
if failed port 443 protocol https then alert
check host www.somachtstefaniedas.de with address www.somachtstefaniedas.de
if failed port 443 protocol https then alert

26
etc-monit/monitrc Executable file
View File

@ -0,0 +1,26 @@
set daemon 300
set pidfile /var/run/monit.pid
set idfile /var/.monit.id
set statefile /var/.monit.state
set limits {
programOutput: 512 B,
sendExpectBuffer: 256 B,
fileContentBuffer: 512 B,
httpContentBuffer: 1 MB,
networkTimeout: 5 seconds
programTimeout: 300 seconds
stopTimeout: 30 seconds
startTimeout: 30 seconds
restartTimeout: 30 seconds
}
set ssl {
verify : enable,
selfsigned : allow
}
set eventqueue
basedir /var/monit
slots 100
include /etc/monit/monit.d/*.cfg