Page 1 of 1
Unable to delete services
Posted: Thu Mar 06, 2014 12:32 pm
by ddubinsky
There are some services that were added incorrectly and i need to delete them. When i try to do that, i get the following error "Could not find a unique id for this service
Service cannot be deleted using this method" I looked at the following link
http://support.nagios.com/wiki/index.ph ... lete_Hosts and when i go to edit the config file, it says --- "DO NOT EDIT THIS FILE BY HAND --- Nagios QL will overwite all manual settings during the next update"
I appear to be stuck. Can someone please advise me on how to correct this?
Thanks!
-Dennis
Re: Unable to delete services
Posted: Thu Mar 06, 2014 4:44 pm
by tmcdonald
Is there a specific reason you are trying to edit the file? The FAQ says to delete it, not edit it.
Re: Unable to delete services
Posted: Thu Mar 06, 2014 4:50 pm
by ddubinsky
there are a bunch of other alerts that were added by others that it would take a long time to set up again, but i suppose a full deletion is a possibility. What would be the best way in this case to do that?
Thanks!
-Dennis
Re: Unable to delete services
Posted: Thu Mar 06, 2014 5:38 pm
by slansing
If they truly are host hosts / services you can remove them manually from the command line, the files you were looking at, because they will not be repopulated as they do not exist in the database anymore.
Re: Unable to delete services
Posted: Thu Mar 06, 2014 8:52 pm
by ddubinsky
not sure i follow how i would do that via command line. What would happen if i deleted those config files?
Re: Unable to delete services
Posted: Fri Mar 07, 2014 10:42 am
by slansing
As I said, and if you are using Nagios XI. Nothing will happen if you remove those config files when they object's exist in the database already, when they do not exist there, but they do exist in the /usr/local/nagios/etc/'hosts/services' directory that means they are ghost hosts, which means they will either show up in the web interface still, or cause dependance issues, things along those lines, and they should be removed.
Re: Unable to delete services
Posted: Fri Mar 07, 2014 11:42 am
by ddubinsky
I deleted the hosts and all of the services in CCM and then deleted the configs from /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services and they are still showing up in Nagios XI web. Is there something else i need to do or a step im missing? Thanks again for your help thus far.
Re: Unable to delete services
Posted: Fri Mar 07, 2014 12:02 pm
by tmcdonald
Did you apply config after deleting from the CCM?
Re: Unable to delete services
Posted: Fri May 02, 2014 12:06 pm
by ecarrasq
I am having the same issue and I've followed all the outlined steps to remove "ghosts...".
Re: Unable to delete services
Posted: Fri May 02, 2014 1:02 pm
by sreinhardt
This is a 2 month old post, please create your own topic so that we may work on your issue specifically.