Duplicate Host/Service Checks

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
mgaribaldi
Posts: 26
Joined: Thu Nov 06, 2014 1:58 pm

Duplicate Host/Service Checks

Post by mgaribaldi »

I am wondering what are the side effects/performance issues with duplicate host and service entries in Nagios3.

I am working with a vendor who has access to our Nagios server, where they want to generate their own config files, for example, vendor-hosts.cfg and vendor-services.cfg, which include a subset of hosts and services also declared in our own pre-existing hosts.cfg and services.cfg. We need to keep the configs separate, and unfortunately, we both need them in our configs for now.

We always receive the following warning when restarting the service.

Code: Select all

Warning: Duplicate definition found for... 
So far, from my perspective, Nagios3 is smart enough to see the dups and not display the them in the GUI.

Has anyone experienced any issues when keeping these duplicates in the configs? I know it isn't clean at all, but something we need to temporarily have in place. :?

I've read the thread below, but Technology_Vacation's question regarding long term effects was never answered.
http://support.nagios.com/forum/viewtop ... =6&t=10711

Any info would be greatly appreciated.

Thank you!
"We all float down here...."
-Pennywise
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Duplicate Host/Service Checks

Post by tmcdonald »

I've never heard of any long-term issues from this, and all I can really think of is higher CPU and RAM usage from the increased number of checks.

As for making them both appear, how are they named? Are they using the exact same names, descriptions, etc?
Former Nagios employee
User avatar
mgaribaldi
Posts: 26
Joined: Thu Nov 06, 2014 1:58 pm

Re: Duplicate Host/Service Checks

Post by mgaribaldi »

Thank you for the response!

They have the exact same name and descriptions.
"We all float down here...."
-Pennywise
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Duplicate Host/Service Checks

Post by tmcdonald »

That's why only one instance is appearing in the interface. If you give them a prefix or suffix like "vendor_whatever" or "whatever_vendor" then they will appear as separate things.
Former Nagios employee
User avatar
mgaribaldi
Posts: 26
Joined: Thu Nov 06, 2014 1:58 pm

Re: Duplicate Host/Service Checks

Post by mgaribaldi »

Thank you tmcdonald! Your advice worked.
"We all float down here...."
-Pennywise
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Duplicate Host/Service Checks

Post by tmcdonald »

Great! I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked