Solved - Problem With Deleting Hosts and Services
Posted: Thu Jan 28, 2010 2:24 pm
There is a bug in versions of 2009R1.1C and 1.1D (possibly earlier versions too) that prevents you from deleting hosts and services that were added using the config wizards. The solution for this problem is found below. We will be releasing 1.1E in the next few days and updating the VMware image. For users and customers running 1.1D and earlier, please take the steps below to resolve the issue.
===
The problem is due to the nagios user not being a member of the nagios group. This was causing the cron job (which runs as the nagios user) to not have permissions to delete the files.
Here's how to solve this problem...
1. Login to the machine as the root user
2. Issue the following commands at the prompt:
===
The problem is due to the nagios user not being a member of the nagios group. This was causing the cron job (which runs as the nagios user) to not have permissions to delete the files.
Here's how to solve this problem...
1. Login to the machine as the root user
2. Issue the following commands at the prompt:
Code: Select all
rm -f /usr/local/nagios/etc/import/*.cfg
usermod -a -G nagios nagios
/etc/init.d/httpd restart