Page 1 of 2

Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 8:45 am
by brdr
Hi,

We are using XI 2014R2.6.

I have deleted 2 hosts via CCM and hit 'Apply Configuration' with no errors. When i query the same hosts in CCM i do not find them. However, when I then go into HOME and look at Host Status Summary I see these same 2 servers in 'Down' status. Same thing for the services for these hosts via Service Status summary (services showing up but hosts do not have services related to them).

Thx

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 8:57 am
by brdr
FYI.. there are no 'Unconfigured Objects' in our XI env.

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 9:33 am
by jolson
Do you have any static objects?

Code: Select all

cat /usr/local/nagios/etc/static/*
Please clear your browser cache and login once more - are the hosts/services still there?
When you access the CCM and click 'Write Config Files' followed by 'Verify Configuration', what is the output?

Best,


Jesse

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 10:22 am
by brdr
1) I cleared browser cache (Firefox). Even tried IE. no luck
2) # ll /usr/local/nagios/etc/static (same 3 objects in our other Nagios env)
-rwxrwxr-x 1 apache nagios 878 Feb 25 08:37 xiobjects.cfg
-rwxrwxr-x 1 apache nagios 4002 Feb 25 08:37 xitemplates.cfg
-rwxrwxr-x 1 apache nagios 0 Feb 25 08:37 xitest.cfg
3) Verfiy Config file :

----
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 934 services.
Checked 142 hosts.
Checked 7 host groups.
Checked 5 service groups.
Checked 4 contacts.
Checked 13 contact groups.
Checked 159 commands.
Checked 11 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 142 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 11 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
---

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 10:36 am
by tmcdonald
Go to Configure -> Core Config Manager, then on the left under Tools click Write Config Files. Then click Delete, then Write, then Verify and Restart. Do the hosts still appear?

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 10:36 am
by jolson
Please try what tmcdonald has recommended above. If you are still having trouble-

Do you see the configs for the deleted hosts in the following directories?

Code: Select all

ll /usr/local/nagios/etc/hosts
ll /usr/local/nagios/etc/services

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 10:40 am
by brdr
They still appear... those little buggers

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 10:45 am
by brdr
For hosts:

I do not see the hosts in //usr/local/nagios/etc/hosts

For services:

These hosts belonged to host group that services are attached to the host group. The hosts have been deleted out of the host group.

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 10:51 am
by tmcdonald
Please run the following command as root from the Nagios server command line and post the results:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh | tail -20

Re: Hosts Deleted in CCM but still shows in Details

Posted: Wed Mar 11, 2015 11:09 am
by brdr
[root@hosta scripts]# ./reconfigure_nagios.sh | tail -20
--2015-03-11 12:08:02-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

[ <=> ] 10,377 --.-K/s in 0.01s

2015-03-11 12:08:02 (779 KB/s) - “nagiosql.login” saved [10377]

--2015-03-11 12:08:02-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.login”

[ <=> ] 10,377 --.-K/s in 0.02s

2015-03-11 12:08:03 (468 KB/s) - “nagiosql.login” saved [10377]

--2015-03-11 12:08:03-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “nagiosql.export.monitoring”

[ <=> ] 13,233 20.3K/s in 0.6s

2015-03-11 12:08:04 (20.3 KB/s) - “nagiosql.export.monitoring” saved [13233]

Checked 11 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 142 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 11 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
RET: 0
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.