Page 1 of 2

Unable to delete services or host in XI

Posted: Tue Dec 30, 2014 10:10 am
by David.adder
Hi!
I have a NagiosXI system, version 2012R2.2 running in CentOs 6.2
A few weeks ago, we noted that we are unable to delete new items (services an also hosts) using the Core Config Manager in the Web Interface of XI. When we do that, we don't receive errors aplying configuration, but this items persits in the configuration.
If we do that with older items, these are correctly deleted.

Just in case, we tried to delete some items manually from console, in "/usr/local/nagios/etc/services" and "/usr/local/nagios/etc/hosts", and after delete the items, we restart de nagios service. Once done this, we see that the deleted items, dissapear from the web interface, and no longer exists in the system.

The point is that if we create a new host, or delete a new item using the web interface, the manually delete items, are come again!! I assume that it is created again when we apply the configuration in the Web interface. But why?

Can anybody help me to troubleshoot why is happening this?

Thank you!

Re: Unable to delete services or host in XI

Posted: Tue Dec 30, 2014 10:25 am
by scottwilkerson
Lets go to Configure -> Core Config Manager -> Tools -> Write Config Files
Click the Delete Button
Then Write
Then Verify
If all this looks good click Restart

Re: Unable to delete services or host in XI

Posted: Tue Dec 30, 2014 11:47 am
by David.adder
Hi Scott,

I have just do that. I did not get any error, but since system has been restarted, items that I manually deleted this morning, are now actives again

Re: Unable to delete services or host in XI

Posted: Tue Dec 30, 2014 1:03 pm
by abrist
David.adder wrote:I have a NagiosXI system, version 2012R2.2 running in CentOs 6.2
scottwilkerson wrote:Click the Delete Button
Did you have a "delete" button? (I didn't think this was added until 2014)
Do you have support? If so, send an email to [email protected] and we will expedite you towards a remote session.

Re: Unable to delete services or host in XI

Posted: Wed Dec 31, 2014 2:36 am
by David.adder
Hi abrist,

Sorry, I thought that refering to delete button maybe was a mistake... I didn't know that this option is for new versions of XI. I used the four option I get: white monitoring data; write additional data; check configuration files; restart Nagios.

About the support, we don't have active subscription for that (it is the basic reason as we did not upgrade our nagios server, because we are not allow to do that without active subscription with you)

Thank you

Re: Unable to delete services or host in XI

Posted: Fri Jan 02, 2015 12:16 pm
by lmiltchev
If you don't have a "Delete" button, you can manually delete configs (or move them to /tmp directory if you wish).

Code: Select all

cd /usr/local/nagios/etc/hosts
rm -rf *
cd /usr/local/nagios/etc/services
rm -rf *
Note: If you decide to move the configs to the /tmp, create the "hosts" and "services" directories first:

Code: Select all

mkdir /tmp/hosts /tmp/services
cd /usr/local/nagios/etc/hosts
mv * /tmp/hosts/
cd /usr/local/nagios/etc/services
mv * /tmp/services/
After this, you can run the "Write Config Tool" again and see if this is going to fix your issue.

Re: Unable to delete services or host in XI

Posted: Mon Jan 05, 2015 3:29 am
by David.adder
Hi lmiltchev,

After doing that (thank you for information), I have been able to remove a host and it services, but I am not able to delete just a service in a host, if the host is not removed. So, problem persists

Re: Unable to delete services or host in XI

Posted: Mon Jan 05, 2015 3:40 am
by Box293
Can you post some screenshots showing exactly what is happening?

Re: Unable to delete services or host in XI

Posted: Mon Jan 05, 2015 8:08 am
by David.adder
Here you have some screenshots:

Step1: delete selected services:
Captura.PNG
Captura1.PNG
Captura3.PNG
*Follow in next comment (maximum 3 attachment)

Re: Unable to delete services or host in XI

Posted: Mon Jan 05, 2015 8:10 am
by David.adder
Step2: apply configuration changes with no problems detected:
Captura4.PNG
Step3: deleted service, again in configuration:
Captura5.PNG