Monitoring plugin output contract
145-monitoring-output-contract.yaml
Monitoring / Integration
What this example does
Illustrates the Nagios-compatible plugin output and standard exit code contract.
Checks and behavior
- Illustrates the Nagios-compatible plugin output and standard exit code contract.
Run with `--output nagios`, `--output icinga2`, `--output checkmk`, or `--output json` to inspect each output. Exit codes: 0 OK, 1 WARNING, 2 CRITICAL, 3 UNKNOWN.
YAML configuration
# Illustrates the Nagios-compatible plugin output and standard exit code contract.
name: Monitoring output contract
url: tcp://127.0.0.1:22
timeouts: {connect: 3, response: 5, total: 10}
metadata:
owner: infrastructure-operations
environment: local
runbook: https://ipsonic.com/probe/first-test.html
monitoring:
service_name: SSH availability contract
output: nagios
on_failure: critical