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?
Phantom Service Issues.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Phantom Service Issues.
Are these objects viewable from the CLI at:
Are they in the static directory?
Code: Select all
/usr/local/nagios/etc/"hosts/services"/object_name?Code: Select all
/usr/local/nagios/etc/static/Re: Phantom Service Issues.
All of the objects are viewable via CLI from the path:
In
I only see three files: xiobjects.cfg, xitemplates.cfg and xitest.cfg
Code: Select all
/usr/local/nagios/etc/"hosts/services"/object name
Code: Select all
/usr/local/nagios/etc/staticI 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.
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
http://support.nagios.com/wiki/index.ph ... t_Hosts.29
Re: Phantom Service Issues.
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.
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.
"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.
Re: Phantom Service Issues.
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.
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.
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.
CCM > Hosts > localhost > Click the blue diskette icon next to the localhost host.