Removed Hosts Still Showing in Host Status Detail
-
asmgiadmin
- Posts: 125
- Joined: Tue Feb 12, 2013 5:00 pm
Removed Hosts Still Showing in Host Status Detail
Inactive hosts were removed from hosts using CCM, but still show as down in host status detail.
How?
How?
Re: Removed Hosts Still Showing in Host Status Detail
First, did you "apply configuration"?
Second, have these hosts had their "config name" changed a few months ago?
Finally, did you upgrade XI at some point from any version older than 2012r1.4?
Second, have these hosts had their "config name" changed a few months ago?
Finally, did you upgrade XI at some point from any version older than 2012r1.4?
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.
-
asmgiadmin
- Posts: 125
- Joined: Tue Feb 12, 2013 5:00 pm
Re: Removed Hosts Still Showing in Host Status Detail
Yes - successfully applied.First, did you "apply configuration"?
Not to my knowledge. They were added with auto-discovery and have been left unchanged since then.Second, have these hosts had their "config name" changed a few months ago?
Nagios XI 2012R1.6Finally, did you upgrade XI at some point from any version older than 2012r1.4?
Hosts do not exist under hosts in CCM but still show as down in host status.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Removed Hosts Still Showing in Host Status Detail
If you access your Nagios XI server from the CLI are you able to see the hosts in:
Have you made sure you are not filtering your search results in the CCM and thus not able to see the hosts? Not calling you crazy just going through the motions.
Code: Select all
/usr/local/nagios/etc/hosts-
asmgiadmin
- Posts: 125
- Joined: Tue Feb 12, 2013 5:00 pm
Re: Removed Hosts Still Showing in Host Status Detail
ahh - cfg file exists with the following:
Why does hostfile.cfg exist, but not appear in CCM -> hosts?
Code: Select all
###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2013-03-14 14:31:19
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define host {
host_name host.domain
use xiwizard_generic_host
address host.domain
hostgroups servers-windows-all
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts nagiosadmin
notification_interval 60
notification_period xi_timeperiod_24x7
_xiwizard autodiscovery
register 1
}
###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Removed Hosts Still Showing in Host Status Detail
Lets try moving that file out of the configuration directory and apply configuration. This should effectively test if it is still in your database and getting recreated.
cp /usr/local/nagios/etc/hosts/host.domain.cfg /tmp
go into XI and apply configuration. If this fails please send us the error log, if not look at the .../etc/hosts directory again for that same file. If it does not exist in there anymore, does it still exist in the XI interface or CCM?
cp /usr/local/nagios/etc/hosts/host.domain.cfg /tmp
go into XI and apply configuration. If this fails please send us the error log, if not look at the .../etc/hosts directory again for that same file. If it does not exist in there anymore, does it still exist in the XI interface or CCM?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
asmgiadmin
- Posts: 125
- Joined: Tue Feb 12, 2013 5:00 pm
Re: Removed Hosts Still Showing in Host Status Detail
copied hostname.cfg to /tmp
rm hostname.cfg
apply configuration - success
hostname.cfg re-created.
rm hostname.cfg
apply configuration - success
hostname.cfg re-created.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Removed Hosts Still Showing in Host Status Detail
So that verifies that the host is indeed still residing in the database.
Take a look at this piece within our Wiki page, follow the directions specified for Ghost Hosts and let us know what the result is, thanks!:
http://support.nagios.com/wiki/index.ph ... t_Hosts.29
Take a look at this piece within our Wiki page, follow the directions specified for Ghost Hosts and let us know what the result is, thanks!:
http://support.nagios.com/wiki/index.ph ... t_Hosts.29
-
asmgiadmin
- Posts: 125
- Joined: Tue Feb 12, 2013 5:00 pm
Re: Removed Hosts Still Showing in Host Status Detail
that seems to have worked.
So now, I have issue where there are multiple .cfg files in /usr/local/nagios/etc/hosts that do no exist in UI. How can I remove any host.cfg that does not currently exist in UI?
I'm getting alerts since .cfg file still exists with hostgoup and need to remove all that do not exist in UI.
So now, I have issue where there are multiple .cfg files in /usr/local/nagios/etc/hosts that do no exist in UI. How can I remove any host.cfg that does not currently exist in UI?
I'm getting alerts since .cfg file still exists with hostgoup and need to remove all that do not exist in UI.
Re: Removed Hosts Still Showing in Host Status Detail
Follow the link in Sam's post to remove the other ghost configs. Do not apply configuration until all errors in the verify process are resolved.
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.