mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
- Added pyOpenSSL to Pipfile and Pipfile.lock for SSL certificate expiration check implementation - Implemented SSLCertificateExpiration check in checks.py - Updated config.yaml with new test cases - Minor changes and clean up in base.py and config.py
89 lines
2.6 KiB
YAML
89 lines
2.6 KiB
YAML
general:
|
|
frequency: 4h # Run checks every 4 hours.
|
|
alerts:
|
|
error:
|
|
- local
|
|
warning:
|
|
- local
|
|
alert:
|
|
- local
|
|
service:
|
|
port: 8888
|
|
# Can be generated using `openssl rand -base64 32`.
|
|
secrets:
|
|
- "O4kt8Max9/k0EmHaEJ0CGGYbBNFmK8kOZNIoUk3Kjwc"
|
|
- "x1T1VZR51pxrv5pQUyzooMG4pMUvHNMhA5y/3cUsYVs="
|
|
|
|
ssl:
|
|
thresholds:
|
|
critical: "1d"
|
|
warning: "10d"
|
|
|
|
websites:
|
|
- domain: "https://mypads.framapad.org"
|
|
paths:
|
|
- path: "/mypads/"
|
|
checks:
|
|
- status-is: 200
|
|
- body-contains: '<div id= "mypads"></div>'
|
|
# le check du certificat devrait plutôt être au niveau
|
|
# de domain et paths, AMHA
|
|
- ssl-certificate-expiration: "on-check"
|
|
- path: "/admin/"
|
|
checks:
|
|
- status-is: 401
|
|
- domain: "https://munin.framasoft.org"
|
|
paths:
|
|
- path: "/"
|
|
checks:
|
|
- status-is: 301
|
|
- path: "/munin/"
|
|
checks:
|
|
- status-is: 401
|
|
- domain: "https://framagenda.org"
|
|
paths:
|
|
- path: "/status.php"
|
|
checks:
|
|
- status-is: 200
|
|
# Là, idéalement, il faudrait un json-contains,
|
|
# qui serait une table de hachage
|
|
- body-contains: '"maintenance":false'
|
|
- ssl-certificate-expiration: "on-check"
|
|
- path: "/"
|
|
checks:
|
|
- status-is: 302
|
|
- path: "/login"
|
|
checks:
|
|
- status-is: 200
|
|
- domain: "https://framadrive.org"
|
|
paths:
|
|
- path: "/status.php"
|
|
checks:
|
|
- status-is: 200
|
|
- body-contains: '"maintenance":false'
|
|
- ssl-certificate-expiration: "on-check"
|
|
- path: "/"
|
|
checks:
|
|
- status-is: 302
|
|
- path: "/login"
|
|
checks:
|
|
- status-is: 200
|
|
- domain: "https://cloud.framabook.org"
|
|
paths:
|
|
- path: "/status.php"
|
|
checks:
|
|
- status-is: 200
|
|
- body-contains: '"maintenance":false'
|
|
- ssl-certificate-expiration: "on-check"
|
|
- path: "/"
|
|
checks:
|
|
- status-is: 302
|
|
- path: "/login"
|
|
checks:
|
|
- status-is: 200
|
|
- domain: "https://framasoft.org"
|
|
path:
|
|
- path: "/"
|
|
checks:
|
|
- status-is: 200
|
|
- ssl-certificate-expiration: "on-check"
|