Page 1 of 1

hosts/services display but in no configuration

Posted: Thu Dec 31, 2015 5:18 pm
by ChathamDaleJ
I had at least two hosts/services that apeared to be flapping. What was happening is that checks I had modified and checks I could not get to were both checking the same thing. There were phantom hosts/services.

I deleted the hosts/servces, restarted and they do not appear in the CCM.

From Write Files, I deleted all files, wrote all files and restarted.

These hosts/services were not there, but slowly they began to reappear.

In /usr/local/nagios/etc I ran the command grep -ir <hostname>. It returned nothing.

I ran: [nagios@nagios scripts]$ ./nagiosql_delete_service.php --config=nitrogen
URL: http://localhost/nagiosxi/includes/components/ccm/
Unable find services in nagiosql database.

Of course, it wants a config name not a host name. However, the host appears nowhere. In the grep -ri, I checked every configuratoin file I knew about. If it were in any config file, that would have found it. I also looked for IP.

Help me obi won nayogi, you''re my only hope.

Re: hosts/services display but in no configuration

Posted: Mon Jan 04, 2016 12:01 pm
by rkennedy
Odd, was the apply configuration successful or did it revert back?

Can you run a grep on your whole nagios directory for the host / service in question? (change host accordingly in the grep)

Code: Select all

grep -R 'host' /usr/local/nagios/etc