Page 1 of 1

Phantom Service Issues.

Posted: Mon Oct 28, 2013 10:41 am
by jcmanous
Greetings,
This is a bit of an odd one:

I am having cases where hosts that have been configured previously are suddenly failing with MySQL errors. This is strange for two reasons:

1) I never configured MySQL service to be monitored
2) I never configured Nagios to monitor said service.

*EDIT* There's a bit of new news here. I'm seeing other services being associated with hosts that were never configured. Upon closer review, you can't even find a service to delete.

There has been an upgrade to the latest/greatest enterprise edition of late but this didn't start happening till I changed the ro/rw strings in snmp. Oddly enough, a host that I haven't yet modified started falling off too so I'm really at a loss here.

The only solution, such as it is, is to re-add each affected host.

Any insight?

Re: Phantom Service Issues.

Posted: Mon Oct 28, 2013 11:20 am
by slansing
Are these objects viewable from the CLI at:

Code: Select all

/usr/local/nagios/etc/"hosts/services"/object_name?
Are they in the static directory?

Code: Select all

/usr/local/nagios/etc/static/

Re: Phantom Service Issues.

Posted: Mon Oct 28, 2013 12:48 pm
by jcmanous
All of the objects are viewable via CLI from the path:

Code: Select all

/usr/local/nagios/etc/"hosts/services"/object name
In

Code: Select all

/usr/local/nagios/etc/static


I only see three files: xiobjects.cfg, xitemplates.cfg and xitest.cfg

Re: Phantom Service Issues.

Posted: Mon Oct 28, 2013 1:12 pm
by slansing
Okay it sounds like you are running into "Ghost Hosts" to remove them, please run through these steps:

http://support.nagios.com/wiki/index.ph ... t_Hosts.29

Re: Phantom Service Issues.

Posted: Mon Oct 28, 2013 1:18 pm
by jcmanous
That did help remove the "Ghost Host" but I still have two hosts that have somehow acquired the service for mysql and localhost is flat out refusing to see itself now.

Re: Phantom Service Issues.

Posted: Mon Oct 28, 2013 1:53 pm
by abrist
There is a good chance that the hosts are inheriting the mysql checks from a hostgroup or directly from your mysql service check. Make sure that the mysql service checks do not include any unexpected hostgroups and have not added those hosts in question to its config in the CCM.

Re: Phantom Service Issues.

Posted: Mon Oct 28, 2013 2:00 pm
by jcmanous
It's odd you should mention that re: hostgroups. I re-added a host several times and very specifically told it NOT to include MySQL and, there it was..

Made me suspicious. ;)

At any rate, I have one more item: The fact that my localhost complains about "No response from remote host '127.0.0.1'...

Also, any direct docs on how hostgroups would be useful.

Re: Phantom Service Issues.

Posted: Tue Oct 29, 2013 9:45 am
by slansing
Hmmm.. Can you share the configuration of your localhost "host," is this occurring on only the host, or its services as well.

CCM > Hosts > localhost > Click the blue diskette icon next to the localhost host.