Ghost config
-
- Posts: 127
- Joined: Wed Nov 18, 2015 11:19 pm
Ghost config
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.
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.
-
- Posts: 193
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Ghost config
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.
In order to delete a host, we have to remove all of the dependencies on it.
-
- Posts: 127
- Joined: Wed Nov 18, 2015 11:19 pm
Re: Ghost config
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.
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.
- jmichaelson
- Posts: 316
- Joined: Wed Aug 23, 2023 1:02 pm
Re: Ghost config
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
-Jason
-
- Posts: 127
- Joined: Wed Nov 18, 2015 11:19 pm
Re: Ghost config
Went back to oldest config we have and still same error.
-
- Posts: 193
- Joined: Thu Feb 09, 2017 5:07 pm
-
- Posts: 127
- Joined: Wed Nov 18, 2015 11:19 pm
Re: Ghost config
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?
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.
Re: Ghost config
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.
/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!
-
- Posts: 4
- Joined: Wed Mar 19, 2025 5:37 pm
Re: Ghost config
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.
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.
-
- Posts: 253
- Joined: Wed Aug 23, 2023 11:29 am
Re: Ghost config
Hi,
You can try repairing the database if you haven't already.
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