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:
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:
Can you shed any light as to why this might be happening?
Thanks,
Brian
Duplicate Services across hosts
Duplicate Services across hosts
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
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
when you add a hostgroup to a service ALL hosts in the hostgroup get the service added.
In you example, you have this
This means all hosts in the aws-germany hostgroup will getthe servicebchabotdg wrote:Code: Select all
hostgroups aws-germany
Re: Duplicate Services across hosts
Good catch. That should have been servicegroups and when I changed it to servicegroups the duplicates disappeared.
Thank you!
Thank you!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Duplicate Services across hosts
Glad it is resolved!