Duplicate Services across hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bchabotdg
Posts: 34
Joined: Wed Aug 16, 2017 2:33 pm

Duplicate Services across hosts

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Duplicate Services across hosts

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bchabotdg
Posts: 34
Joined: Wed Aug 16, 2017 2:33 pm

Re: Duplicate Services across hosts

Post by bchabotdg »

Good catch. That should have been servicegroups and when I changed it to servicegroups the duplicates disappeared.

Thank you!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Duplicate Services across hosts

Post by scottwilkerson »

Glad it is resolved!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked