Unable to delete services or host in XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Unable to delete services or host in XI

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to delete services or host in XI

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: Unable to delete services or host in XI

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Unable to delete services or host in XI

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: Unable to delete services or host in XI

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Unable to delete services or host in XI

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: Unable to delete services or host in XI

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Unable to delete services or host in XI

Post by Box293 »

Can you post some screenshots showing exactly what is happening?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: Unable to delete services or host in XI

Post 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)
You do not have the required permissions to view the files attached to this post.
David.adder
Posts: 74
Joined: Thu Jan 17, 2013 8:44 am
Location: Spain

Re: Unable to delete services or host in XI

Post by David.adder »

Step2: apply configuration changes with no problems detected:
Captura4.PNG
Step3: deleted service, again in configuration:
Captura5.PNG
You do not have the required permissions to view the files attached to this post.
Locked