doc: update the default configuration file

This commit is contained in:
Alexis Métaireau 2023-12-16 22:04:43 +01:00
parent 03b805f223
commit ded10b3488

View file

@ -1,25 +1,64 @@
general: general:
frequency: "5m" # Run checks every minute. frequency: "1m" # Run checks every minute.
# Which way do you want to be warned when a check goes to that severity?
alerts: alerts:
error: ok:
- local - local
warning: warning:
- local - local
alert: critical:
- local - local
unknown:
- local
# mail:
# mailfrom: no-reply@example.org
# host: 127.0.0.1
# port: 25
# ssl: False
# starttls: False
# auth:
# login: foo
# password: bar
# addresses:
# - foo@admin.example.org
# - bar@admin.example.org
# gotify:
# - url: https://example.org
# tokens:
# - foo
# - bar
service: service:
secrets: secrets:
- Shorts-Tribunal-Plentiful-Penknife-Lazily-Move0 - "1234"
# Secrets can be generated using `openssl rand -base64 32`. # Secrets can be generated using `openssl rand -base64 32`.
ssl: ssl:
thresholds: thresholds:
- "15d": critical - "1d": critical
- "25d": warning - "5d": warning
# It's also possible to define the checks in another file # It's also possible to define the checks in another file
# with the include syntax: # with the include syntax:
# #
# websites: !include websites.yaml # websites: !include websites.yaml
# #
websites: !include websites.yaml websites:
- domain: "https://mypads.example.org"
paths:
- path: "/mypads/"
checks:
- status-is: 200
- body-contains: '<div id= "mypads"></div>'
- ssl-certificate-expiration: "on-check"
- path: "/admin/"
checks:
- status-is: 401
- domain: "https://munin.example.org"
paths:
- path: "/"
checks:
- status-is: 301
- path: "/munin/"
checks:
- status-is: 401