status(host): configure external status page and uptime monitoring host
Some checks failed
/ Ansible Lint (push) Failing after 2m0s
Some checks failed
/ Ansible Lint (push) Failing after 2m0s
This commit is contained in:
parent
51bbdd42a2
commit
fe52127e82
14 changed files with 1381 additions and 2 deletions
174
resources/external/status/docker_compose/config/websites.yaml
vendored
Normal file
174
resources/external/status/docker_compose/config/websites.yaml
vendored
Normal file
|
|
@ -0,0 +1,174 @@
|
|||
# Websites, Websites (Staging) and Websites (Redirects)
|
||||
# (hosted on public-web-static)
|
||||
# One could probably also generate this list from the public-web-static config.
|
||||
websites-defaults: &websites_defaults
|
||||
group: Websites
|
||||
interval: 1m
|
||||
alerts:
|
||||
- type: matrix
|
||||
failure-threshold: 5
|
||||
success-threshold: 2
|
||||
minimum-reminder-interval: "6h"
|
||||
send-on-resolved: true
|
||||
|
||||
websites-staging-defaults: &websites_staging_defaults
|
||||
group: Websites (Staging)
|
||||
interval: 5m
|
||||
alerts:
|
||||
- type: matrix
|
||||
failure-threshold: 3
|
||||
success-threshold: 1
|
||||
minimum-reminder-interval: "24h"
|
||||
send-on-resolved: true
|
||||
|
||||
websites-redirects-defaults: &websites_redirects_defaults
|
||||
group: Websites (Redirects)
|
||||
interval: 5m
|
||||
alerts:
|
||||
- type: matrix
|
||||
failure-threshold: 3
|
||||
success-threshold: 1
|
||||
minimum-reminder-interval: "24h"
|
||||
send-on-resolved: true
|
||||
|
||||
endpoints:
|
||||
# Websites
|
||||
- name: branding-resources.hamburg.ccc.de
|
||||
url: "https://branding-resources.hamburg.ccc.de/logo/sources.txt"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*file: ccchh-logo.png*)"
|
||||
|
||||
- name: c3cat.de
|
||||
url: "https://c3cat.de"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Cat Ears Operation Center*)"
|
||||
|
||||
- name: cryptoparty-hamburg.de
|
||||
url: "https://cryptoparty-hamburg.de"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Digitale Selbstverteidigung in Hamburg*)"
|
||||
|
||||
- name: element-admin.hamburg.ccc.de
|
||||
url: "https://element-admin.hamburg.ccc.de"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Loading Element Admin*)"
|
||||
|
||||
- name: element.hamburg.ccc.de
|
||||
url: "https://element.hamburg.ccc.de"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Sorry, Element requires JavaScript to be enabled.*)"
|
||||
|
||||
- name: hacker.tours
|
||||
url: "https://hacker.tours"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
# Once suites support alerting, we can also monitor the target as well.
|
||||
- "[BODY] == pat(*<meta http-equiv=\"refresh\" content=\"0; url=https://hacker.tours/de/\">*)"
|
||||
|
||||
- name: hackertours.hamburg.ccc.de
|
||||
url: "https://hackertours.hamburg.ccc.de"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
# Once suites support alerting, we can also monitor the target as well.
|
||||
- "[BODY] == pat(*<meta http-equiv=\"refresh\" content=\"0; url=https://hackertours.hamburg.ccc.de/de/\">*)"
|
||||
|
||||
- name: hamburg.ccc.de
|
||||
url: "https://hamburg.ccc.de"
|
||||
<<: *websites_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Wir sind der Chaos Computer Club der Hansestadt Hamburg.*)"
|
||||
|
||||
# Websites (Staging)
|
||||
- name: staging.c3cat.de
|
||||
url: "https://staging.c3cat.de"
|
||||
<<: *websites_staging_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*c3cat.de Staging Environment*)"
|
||||
|
||||
- name: staging.cryptoparty-hamburg.de
|
||||
url: "https://staging.cryptoparty-hamburg.de"
|
||||
<<: *websites_staging_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*cryptoparty-hamburg.de Staging Environment*)"
|
||||
|
||||
- name: staging.hacker.tours
|
||||
url: "https://staging.hacker.tours"
|
||||
<<: *websites_staging_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*hacker.tours Staging Environment*)"
|
||||
|
||||
- name: staging.hackertours.hamburg.ccc.de
|
||||
url: "https://staging.hackertours.hamburg.ccc.de"
|
||||
<<: *websites_staging_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*hackertours.hamburg.ccc.de Staging Environment*)"
|
||||
|
||||
- name: staging.hamburg.ccc.de
|
||||
url: "https://staging.hamburg.ccc.de"
|
||||
<<: *websites_staging_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*hamburg.ccc.de Staging Environment*)"
|
||||
|
||||
# Website (Redirects)
|
||||
- name: www.c3cat.de
|
||||
url: "https://www.c3cat.de"
|
||||
<<: *websites_redirects_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Cat Ears Operation Center*)"
|
||||
|
||||
- name: cryptoparty.hamburg.ccc.de
|
||||
url: "https://cryptoparty.hamburg.ccc.de"
|
||||
<<: *websites_redirects_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Digitale Selbstverteidigung in Hamburg*)"
|
||||
|
||||
- name: staging.cryptoparty.hamburg.ccc.de
|
||||
url: "https://staging.cryptoparty.hamburg.ccc.de"
|
||||
<<: *websites_redirects_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*cryptoparty-hamburg.de Staging Environment*)"
|
||||
|
||||
- name: www.hamburg.ccc.de
|
||||
url: "https://www.hamburg.ccc.de"
|
||||
<<: *websites_redirects_defaults
|
||||
conditions:
|
||||
- "[STATUS] == 200"
|
||||
- "[CERTIFICATE_EXPIRATION] > 48h"
|
||||
- "[BODY] == pat(*Wir sind der Chaos Computer Club der Hansestadt Hamburg.*)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue