Where do these duplicates service definitions come from?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

Where do these duplicates service definitions come from?

Post by TSCAdmin »

Every now and then I see messages like the following while Nagios does pre-flight checks:

Code: Select all

Warning: Duplicate definition found for service 'SERVICE-X' on host 'srv-svv-0192' (config file '/usr/local/nagios/etc/services/srv-svv-0192.cfg', starting on line 107)
Warning: Duplicate definition found for service 'SERVICE-X' on host 'srv-svv-0170' (config file '/usr/local/nagios/etc/services/srv-svv-0170.cfg', starting on line 107)
Warning: Duplicate definition found for service 'SERVICE-X' on host 'srv-svv-0183' (config file '/usr/local/nagios/etc/services/srv-svv-0183.cfg', starting on line 107)
Warning: Duplicate definition found for service 'SERVICE-X' on host 'srv-svv-0185' (config file '/usr/local/nagios/etc/services/srv-svv-0185.cfg', starting on line 107)
Warning: Duplicate definition found for service 'SERVICE-X' on host 'srv-svv-0189' (config file '/usr/local/nagios/etc/services/srv-svv-0189.cfg', starting on line 107)
Warning: Duplicate definition found for service 'SERVICE-X' on host 'srv-svv-0180' (config file '/usr/local/nagios/etc/services/srv-svv-0180.cfg', starting on line 107)
..... any many more
I have to delete them manually all the time. I was wondering where do they come from? Is there any way to prevent them from reoccuring?

Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Where do these duplicates service definitions come from?

Post by mguthrie »

The most common reason for this is that a host -> service relationship is established in both a host definition, and a hostgroup definition, or multiple hostgroup->service assignments which cause certain hosts to overlap. It doesn't break anything to have these duplications, it just more of a heads up for having clean config files.
Locked