Page 1 of 1

Duplicate Services across hosts

Posted: Tue Apr 24, 2018 9:02 am
by bchabotdg
I'm seeing duplicate services created across multiple hosts which were never configured for these services.

(Background info as requested in FAQ)
Linux Distribution and version? CentOS Linux release 7.4.1708
32 or 64bit? 64
VMware Image or Manual Install of XI? Manual install
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? Using mod_gearman.
Nagios XI version: 5.4.13

Issue details:
I have configured a service on five hosts that is appearing multiple times in Nagios. There are no parent-child relationships among them nor among any on this server at all. These should appear once each, but Nagios shows the service repeated on multiple hosts:
Here is the config instances:
screenshot1.jpg
Here is what each one looks like:

define service {
host_name {hostname}.vrst.local
service_description eth0 Bandwidth - Inbound on {hostname}.vrst.local
use xiwizard_ncpa_service
check_command check_xi_ncpa!-t '{token}' -P 5693 -M 'interface/eth0/bytes_recv' -d -u M -w 10 -c 100
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contact_groups oncall
_xiwizard ncpa
hostgroups aws-germany
register 1
}


So, 5 times, no inheritance.

Yet, the user interface shows it on all sorts of hosts it isn’t configured for:
screenshot2.jpg
Can you shed any light as to why this might be happening?

Thanks,

Brian

Re: Duplicate Services across hosts

Posted: Tue Apr 24, 2018 10:39 am
by scottwilkerson
Are any of the hosts that you do not want configured members of the aws-germany hostgroup?
when you add a hostgroup to a service ALL hosts in the hostgroup get the service added.

In you example, you have this
bchabotdg wrote:

Code: Select all

hostgroups aws-germany
This means all hosts in the aws-germany hostgroup will getthe service

Re: Duplicate Services across hosts

Posted: Tue Apr 24, 2018 11:36 am
by bchabotdg
Good catch. That should have been servicegroups and when I changed it to servicegroups the duplicates disappeared.

Thank you!

Re: Duplicate Services across hosts

Posted: Tue Apr 24, 2018 12:22 pm
by scottwilkerson
Glad it is resolved!