Open
Description
Summary
The documentation of nagios module docs did not explain anything about the actual Nagios server who need to receive the nagios commands. All examples assume than the managed host is also a nagios server (or as at last than there is a nagios command on the managed host).
This will not work with many managed hosts (for example the one who a nrpe
demon).
The way to work is probably to add delegate_to
to the role for example:
- name: Schedule downtime for all services on host
community.general.nagios:
action: downtime
minutes: 60
service: all
host: "{{ inventory_hostname }}"
comment: "Mise à jour des applications Cocktail"
delegate_to: nagios.example.com
(with nagios.example.com available via ssh
)
Issue Type
Documentation Report
Component Name
nagios
Ansible Version
Community.general Version
version 10.3.0
Configuration
OS / Environment
No response
Additional Information
No response
Code of Conduct
- I agree to follow the Ansible Code of Conduct