HTTP assertion severity identifiers
70-http-assertion-ids.yaml
HTTP(S)
What this example does
This example demonstrates http assertion severity identifiers.
Checks and behavior
- Sends an GET request to https://api.example.com/health.
- Checks allowed/denied HTTP status codes.
- Looks for expected response content and/or rejects known error markers.
- Formats results for icinga2 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: HTTP assertion severity identifiers
url: https://api.example.com/health
tests:
status:
allow: [200]
body:
contains: ["healthy"]
monitoring:
output: icinga2
on_failure: critical
assertions:
- id: http.body
severity: warning
- id: http.status
severity: critical