Phantom Service Issues.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Phantom Service Issues.

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Phantom Service Issues.

Post 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/
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Phantom Service Issues.

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Phantom Service Issues.

Post 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
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Phantom Service Issues.

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Phantom Service Issues.

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jcmanous
Posts: 61
Joined: Thu Dec 09, 2010 11:39 am

Re: Phantom Service Issues.

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Phantom Service Issues.

Post 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.
Locked