Unable to delete host from config

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cmhnz
Posts: 1
Joined: Tue Dec 31, 2013 4:16 am

Unable to delete host from config

Post by cmhnz »

Hi,

We use Nagios Core to monitor our corporate environment, and for some reason, I cannot delete a host from the Windows config file. I'm no Nagios expert, but I'm perfectly comfortable adding and removing hosts and services, however I have a particular host which breaks Nagios if I hash it out or delete it.

I've been able to remove all services related to the host, but if I remove the host and restart the Nagios process, Nagios breaks. Trying to restart from the command line (Ubuntu) complains about a config issue.

Can anyone suggest what could possibly be causing this? It is just a standard Windows server which is being decommissioned, and I've checked the host to see if there's anything unusual about it (additional Nagios features installed perhaps?), but I can't find anything out of the ordinary.

Happy to provide more info, but unsure what is relevant!

Thanks in advance.

Chris
FTL
Posts: 72
Joined: Fri Oct 21, 2011 7:23 am

Re: Unable to delete host from config

Post by FTL »

from the terminal please run

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgc
Then if you are able to without posting too much sensitive info please post the relevant config file it is moaning about from the above output

We can then try to work out what Nagios does not like.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to delete host from config

Post by slansing »

Beat me to it FTL.. :) Please share the output as noted above.
Locked