Unable to delete services or host in XI
-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
Unable to delete services or host in XI
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!
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
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
Click the Delete Button
Then Write
Then Verify
If all this looks good click Restart
-
David.adder
- Posts: 74
- Joined: Thu Jan 17, 2013 8:44 am
- Location: Spain
Re: Unable to delete services or host in XI
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
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
David.adder wrote:I have a NagiosXI system, version 2012R2.2 running in CentOs 6.2
Did you have a "delete" button? (I didn't think this was added until 2014)scottwilkerson wrote:Click the Delete Button
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.
"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
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
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
If you don't have a "Delete" button, you can manually delete configs (or move them to /tmp directory if you wish).
Note: If you decide to move the configs to the /tmp, create the "hosts" and "services" directories first:
After this, you can run the "Write Config Tool" again and see if this is going to fix your issue.
Code: Select all
cd /usr/local/nagios/etc/hosts
rm -rf *
cd /usr/local/nagios/etc/services
rm -rf *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/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
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
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
- 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
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
Here you have some screenshots:
Step1: delete selected services: *Follow in next comment (maximum 3 attachment)
Step1: delete selected services: *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
Step2: apply configuration changes with no problems detected:
Step3: deleted service, again in configuration:
You do not have the required permissions to view the files attached to this post.