Can't delete services in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nealg
Posts: 23
Joined: Wed Aug 17, 2011 11:11 am

Can't delete services in Nagios XI

Post by nealg »

After an upgrade to Nagios Xi 2014R1.1 none of the Nagios XI users can't delete services. Nagios acts as if it is going to schedule the service to be deleted but then the service is not removed.

Found some instructions on forum to delete the service in CCM & then go into any other service for this host click save & then apply. This worked.

It was noted that this is a bug and I was wondering when an update will be available. We really need to have the ability for Nagios XI users to be able to remove their own services.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can't delete services in Nagios XI

Post by slansing »

The default way to delete services is through the CCM, are you talking about Home > Service Detail > "Service Name" > Reconfigure? If so, what is the error these users receive when trying to delete one?
nealg
Posts: 23
Joined: Wed Aug 17, 2011 11:11 am

Re: Can't delete services in Nagios XI

Post by nealg »

My NAGIOS users cant delete services from the configure tab.

When one of the Windows Admins try's to delete a service it is then scheduled to be removed but the service never deletes.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't delete services in Nagios XI

Post by abrist »

nealg wrote:Found some instructions on forum to delete the service in CCM & then go into any other service for this host click save & then apply. This worked.
This bug has been fixed and will be in the next XI release. Attached is a zip with the fixed script. Apply it by doing the following:
On the XI server, download and transfer the zip file to:

Code: Select all

/usr/local/nagiosxi/html/includes/components/ccm/includes/
Extract and fix the permissions:

Code: Select all

unzip delete_object.inc.zip
chown nagios:nagios delete_object.inc.php
nealg wrote:My NAGIOS users cant delete services from the configure tab.
We are still working on this bug, I will let you know when we have more.
You do not have the required permissions to view the files attached to this post.
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.
nealg
Posts: 23
Joined: Wed Aug 17, 2011 11:11 am

Re: Can't delete services in Nagios XI

Post by nealg »

Followed the instructions given and this didn't resolve service deletion issue. Can't delete services from CCM or configure tab.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't delete services in Nagios XI

Post by scottwilkerson »

Ok, we did find one other element required, the patch would be to unzip the following into

Code: Select all

/usr/local/nagiosxi/scripts
Last edited by scottwilkerson on Tue Jun 17, 2014 12:23 pm, edited 1 time in total.
Reason: bad file removed
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nealg
Posts: 23
Joined: Wed Aug 17, 2011 11:11 am

Re: Can't delete services in Nagios XI

Post by nealg »

Fixed half of my issue, much thanks. I can now delete services from CCM without any issue.

However I still can't delete services/hosts from the configure tab.

When I click on host/configure/Delete this host, doesn't work. Is scheduled to be removed but then the host/service remains.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't delete services in Nagios XI

Post by scottwilkerson »

Yep, there was still an issue with 2 of the files. Attached is a new zip that needs to go in

Code: Select all

/usr/local/nagiosxi/scripts
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nealg
Posts: 23
Joined: Wed Aug 17, 2011 11:11 am

Re: Can't delete services in Nagios XI

Post by nealg »

Unzipped new files, changed owner & group to nagios, and restarted nagios service.

I still can't delete services/hosts from the configure tab.

When I click on host/configure/Delete this host, doesn't work. Is scheduled to be removed but then the host/service remains.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can't delete services in Nagios XI

Post by lmiltchev »

It may take a couple of minutes before the host is removed from the page. How long did you wait?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked