Scheduled Downtime
Go to Automation - Add downtime Go to Automation - Remove downtime
Description
This playbook schedules or removes downtime for one or more hosts in Nagios. It validates the target hosts and applies the specified downtime action using the Nagios API. The playbook ensures proper error handling for invalid hosts and logs failures if any.
Credentials
- sys_ansible_local
- Nagios XI - PR - User - sys_daf_nagios_read
Input
| Variable | Description |
|---|---|
target |
Comma-separated list of hosts for downtime management |
nagios_action |
Action to perform (e.g., downtime, delete_downtime) |
nagios_minutes |
Duration of downtime in minutes |
nagios_comment |
Comment for the downtime action |
Output
None