diff --git a/config.yaml b/config.yaml index 634628b..5c71b89 100644 --- a/config.yaml +++ b/config.yaml @@ -1,25 +1,64 @@ 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: - error: + ok: - local warning: - local - alert: + critical: - 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: secrets: - - Shorts-Tribunal-Plentiful-Penknife-Lazily-Move0 + - "1234" # Secrets can be generated using `openssl rand -base64 32`. ssl: thresholds: - - "15d": critical - - "25d": warning + - "1d": critical + - "5d": warning # It's also possible to define the checks in another file # with the include syntax: # # websites: !include websites.yaml # -websites: !include websites.yaml +websites: + - domain: "https://mypads.example.org" + paths: + - path: "/mypads/" + checks: + - status-is: 200 + - body-contains: '
' + - 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