"Duplicate definition found for service "

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

"Duplicate definition found for service "

Post by benhank »

guys what does this warning mean, and what impact would it have on doing an apply config, or what impact does this have on monitoring?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: "Duplicate definition found for service "

Post by bwallace »

The first thing to ask yourself is "Do I have service checks set up directly for the host in the host's config AND is that host also inheriting checks from a hostgroup or service group with the same checks configured?" - this can cause the duplicate definition errors, in which case I believe the apply config would fail, that's all.

In the Ui go to: Configure > Core Config Manager > Service...find the service in question and in the 'Actions' column on the right, click in the blue 'i" icon. This will show you the relationship info, i.e. the other hosts / services it is tied to.
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: "Duplicate definition found for service "

Post by benhank »

thats a good answer man. My apply cfg doesn't fail. but the interesting thing is that I have 24 lines with that error, however the verification report states:

Code: Select all

Total Warnings: 0
Total Errors: 0
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: "Duplicate definition found for service "

Post by ssax »

Those are pre-verification verifications. :)

If you have multiple services with the same service description being applied to a host (whether applied from a hostgroup or directly on a host), it will only show one service but I generally tend to try to resolve the duplicates.

99.9% of the time it's because you setup the service initially directly attached to the host, then you attach a different service with the same name to a hostgroup that that host resides in and it will give you this warning.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: "Duplicate definition found for service "

Post by benhank »

ok thanks for the answer sir! my hunt for zippy apply cfg goes on. you can lock this.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked