nagios_program_status_tool
Check if the Nagios daemon is alive and working by detecting stale status data, globally disabled notifications, or disabled check execution, so a dead monitoring system is never mistaken for a healthy one.
Instructions
Check whether the Nagios daemon itself is alive and actually working.
Use this to verify the monitoring system, NOT to find outages. It is the right tool for a watchdog asking "is Nagios still able to tell me about problems?" -- nagios_current_problems_tool answers a different question and returns "no problems" both when all is well and when Nagios has silently stopped working.
Detects a wedged daemon (CGI still returns 200 but status data is stale), globally disabled notifications (monitoring everything, alerting nobody), and disabled check execution. Raises on connection failure, so a dead Nagios can never be read as healthy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_staleness_seconds | No | How old Nagios's status data may be before the daemon is considered wedged. Default 60 (it refreshes every ~10s). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |