Example assertion severity warning
45-monitoring-assertion-warning.yaml
HTTP(S)
What this example does
Monitoring integration: Example assertion severity warning. Shows how to report checks to existing operational monitoring.
Checks and behavior
- Sends an GET request to https://example.com/health.
- Checks allowed/denied HTTP status codes.
- Looks for expected response content and/or rejects known error markers.
- TLS settings cover certificate trust.
- 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.
name: "Example assertion severity warning"
url: "https://example.com/health"
request:
method: GET
timeouts:
connect: 3
response: 10
tls:
verify: true
monitoring:
service_name: "API Health (warning)"
output: nagios
on_failure: warning
tests:
status:
allow: [200]
body:
contains:
- 'healthy'