Page 1 of 1

Duplicate Host/Service Checks

Posted: Sun Dec 28, 2014 7:23 pm
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!

Re: Duplicate Host/Service Checks

Posted: Mon Dec 29, 2014 9:59 am
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?

Re: Duplicate Host/Service Checks

Posted: Mon Dec 29, 2014 12:55 pm
by mgaribaldi
Thank you for the response!

They have the exact same name and descriptions.

Re: Duplicate Host/Service Checks

Posted: Mon Dec 29, 2014 12:57 pm
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.

Re: Duplicate Host/Service Checks

Posted: Fri Jan 09, 2015 4:47 pm
by mgaribaldi
Thank you tmcdonald! Your advice worked.

Re: Duplicate Host/Service Checks

Posted: Mon Jan 12, 2015 10:10 am
by tmcdonald
Great! I'll be closing this thread now, but feel free to open another if you need anything in the future!