hosts/services display but in no configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

hosts/services display but in no configuration

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: hosts/services display but in no configuration

Post 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
Former Nagios Employee
Locked