Ghost config

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
matson-itops
Posts: 127
Joined: Wed Nov 18, 2015 11:19 pm

Ghost config

Post by matson-itops »

Getting error below :

Error: Could not find any host matching 'EQX1VWPD05 - WMS Database Server' (config file '/usr/local/nagios/etc/services/EQX1VWPD05 - WMS Database Server.cfg', starting on line 127)

this file and host does not exist anymore. How can I clear it? it is preventing me from applying configuration.
DoubleDoubleA
Posts: 193
Joined: Thu Feb 09, 2017 5:07 pm

Re: Ghost config

Post by DoubleDoubleA »

Delete the service first in the CCM, then the host.

In order to delete a host, we have to remove all of the dependencies on it.
matson-itops
Posts: 127
Joined: Wed Nov 18, 2015 11:19 pm

Re: Ghost config

Post by matson-itops »

Hi

Not sure in what order I did the deletes.
I was able to delete services and host. I no longer see the services, hosts, or raw config file
referenced in the error.

But still no luck applying configuration.
User avatar
jmichaelson
Posts: 316
Joined: Wed Aug 23, 2023 1:02 pm

Re: Ghost config

Post by jmichaelson »

Can you go back to the last known good configuration snapshot and re-attempt your deletes?
Please let us know if you have any other questions or concerns.

-Jason
matson-itops
Posts: 127
Joined: Wed Nov 18, 2015 11:19 pm

Re: Ghost config

Post by matson-itops »

Went back to oldest config we have and still same error.
DoubleDoubleA
Posts: 193
Joined: Thu Feb 09, 2017 5:07 pm

Re: Ghost config

Post by DoubleDoubleA »

matson-itops
Posts: 127
Joined: Wed Nov 18, 2015 11:19 pm

Re: Ghost config

Post by matson-itops »

No errors, but still unable to "apply config"
I also confirmed config files were re-written.

Is there anywhere else this "bad config" could still be hiding?
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9189
Joined: Thu Oct 30, 2014 9:02 am

Re: Ghost config

Post by tgriep »

Take a look in this directory for a configuration file
/usr/local/nagios/etc/import/

If you see a file in there, that could be what is creating the configuration error so delete the file.

Re-run the Delete, Write, Delete, Verify process from the KB article again and if the verify works, try and apply the configuration.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jlin@matson.com
Posts: 4
Joined: Wed Mar 19, 2025 5:37 pm

Re: Ghost config

Post by jlin@matson.com »

using different account . matson-itops / jlin@matson.com.

I do find the host under /usr/local/nagios/etc/hosts

I keeps showing back up after a delete/write. I suspect this config is somehow in DB or cached somewhere.
gwesterman
Posts: 253
Joined: Wed Aug 23, 2023 11:29 am

Re: Ghost config

Post by gwesterman »

Hi,

You can try repairing the database if you haven't already.

Code: Select all

cd /usr/local/nagiosxi/scripts
./repair_databases.sh
service nagios stop
service ndo2db restart
service nagios start
Post Reply