The default permissions applied to Nagios’ configuration files don’t allow the discovery module to update them. To fix it, you will need to run the following commands:
$ cd /etc/nagios $ chown nagios:nagios *.cfg $ chmod g+w *.cfg