Maintenance page detection
106-maintenance-page-detection.yaml
HTTP(S)
What this example does
This example demonstrates maintenance page detection.
Checks and behavior
- Sends an GET request to https://www.example.com/.
- Checks allowed/denied HTTP status codes.
- Validates required, forbidden or matching HTTP headers.
- Looks for expected response content and/or rejects known error markers.
- TLS settings cover certificate trust, certificate expiry.
- Formats results for nagios output.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
# Catch accidental maintenance/error pages that still return HTTP 200.
name: "Maintenance page detection"
url: "https://www.example.com/"
request: {method: GET}
timeouts: {connect: 3, response: 10}
tls: {verify: true, min_valid_days: 14}
tests:
status: {allow: [200]}
headers:
contains:
Content-Type: [text/html]
body:
contains: ["<html"]
not_contains:
- "Scheduled maintenance"
- "Error establishing a database connection"
- "There has been a critical error on this website"
- "Internal Server Error"
monitoring:
service_name: "Unexpected Maintenance Page"
output: nagios
on_failure: critical