"Duplicate definition found for service "
"Duplicate definition found for service "
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
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
Re: "Duplicate definition found for service "
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.
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!
Re: "Duplicate definition found for service "
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: 0Proudly 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
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
Re: "Duplicate definition found for service "
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.
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.
Re: "Duplicate definition found for service "
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
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