I keep getting the following error when I attempt to disable alerts for a particular host. Not sure what the heck is going on!
failed: [127.0.0.1 ->
nagios.xyz.net] => {"cmdfile": "/var/spool/nagios/cmd/nagios.cmd", "failed": true}
msg: unable to write to nagios command file
Permissions to file (My user is in the "nagios" group):
prwxrwx---. 1 nagios nagios 0 Sep 4 15:47 nagios.cmd
pre_tasks:
- name: disable nagios alerts for this host webserver service
nagios: action=disable_alerts host=qcweb001 service=all cmdfile=/var/spool/nagios/cmd/nagios.cmd