Nagios Downtime using Ansible
Posted: Wed Jun 24, 2020 6:50 am
Hi,
I tried to schedule downtime using ansible for nagios core. But I'm getting
Error: External command failed -> SCHEDULE_SVC_DOWNTIME;localhost;httpd;1592999244;1592999544;1;0;300;Ansible;test
---
- name: Nagios Downtime
hosts: localhost
become: true
tasks:
- name: Downtime for swap
nagios:
action: downtime
minutes: 5
service: httpd
host: '{{ inventory_hostname }}'
cmdfile: /usr/local/nagios/var/rw/nagios.cmd
comment: test
Can somebody help me to resolve this
I tried to schedule downtime using ansible for nagios core. But I'm getting
Error: External command failed -> SCHEDULE_SVC_DOWNTIME;localhost;httpd;1592999244;1592999544;1;0;300;Ansible;test
---
- name: Nagios Downtime
hosts: localhost
become: true
tasks:
- name: Downtime for swap
nagios:
action: downtime
minutes: 5
service: httpd
host: '{{ inventory_hostname }}'
cmdfile: /usr/local/nagios/var/rw/nagios.cmd
comment: test
Can somebody help me to resolve this