Hosts Deleted in CCM but still shows in Details

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Hosts Deleted in CCM but still shows in Details

Post 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
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Deleted in CCM but still shows in Details

Post by brdr »

FYI.. there are no 'Unconfigured Objects' in our XI env.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Hosts Deleted in CCM but still shows in Details

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Deleted in CCM but still shows in Details

Post 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
---
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hosts Deleted in CCM but still shows in Details

Post 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?
Former Nagios employee
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Hosts Deleted in CCM but still shows in Details

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Deleted in CCM but still shows in Details

Post by brdr »

They still appear... those little buggers
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Deleted in CCM but still shows in Details

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Hosts Deleted in CCM but still shows in Details

Post 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
Former Nagios employee
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: Hosts Deleted in CCM but still shows in Details

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