Warning: Duplicate definition found for service (HELP))

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Technology_Vacation
Posts: 22
Joined: Thu Mar 21, 2013 9:07 am

Re: Warning: Duplicate definition found for service (HELP))

Post by Technology_Vacation »

No they are only visible under the /services directory.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Warning: Duplicate definition found for service (HELP))

Post by sreinhardt »

In your XI webUI are they listed as capital or lowercase? Please do the following and return the output to us:

Code: Select all

ll /usr/local/nagios/etc/services
mkdir /tmp/services
mv /usr/local/nagios/etc/services/* /tmp/services/
Write config files from WebUI, do not apply or verify.
ll /usr/local/nagios/etc/services
Verify configs and restart nagios from WebUI
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Technology_Vacation
Posts: 22
Joined: Thu Mar 21, 2013 9:07 am

Re: Warning: Duplicate definition found for service (HELP))

Post by Technology_Vacation »

I have tried this step, and still the same issue..

Any other alternatives?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Warning: Duplicate definition found for service (HELP))

Post by abrist »

What was the output of Spencer's commands?

Code: Select all

ll /usr/local/nagios/etc/services
mkdir /tmp/services
mv /usr/local/nagios/etc/services/* /tmp/services/
Write config files from WebUI, do not apply or verify.
ll /usr/local/nagios/etc/services
Verify configs and restart nagios from WebUI
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Technology_Vacation
Posts: 22
Joined: Thu Mar 21, 2013 9:07 am

Re: Warning: Duplicate definition found for service (HELP))

Post by Technology_Vacation »

Its not affecting anything, but yet again - I'm thinking long term if it might cause issues..
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Warning: Duplicate definition found for service (HELP))

Post by lmiltchev »

What was the output of Spencer's commands?

Code: Select all

ll /usr/local/nagios/etc/services
mkdir /tmp/services
mv /usr/local/nagios/etc/services/* /tmp/services/
Write config files from WebUI, do not apply or verify.
ll /usr/local/nagios/etc/services
Verify configs and restart nagios from WebUI
Be sure to check out our Knowledgebase for helpful articles and solutions!
Technology_Vacation
Posts: 22
Joined: Thu Mar 21, 2013 9:07 am

Re: Warning: Duplicate definition found for service (HELP))

Post by Technology_Vacation »

So i found out the problem..

Core configuration manager ----Services ---- If you have a service defined as ABC.ABC.COM and then one ABC.abc.com.

Nagios would treat them as 2 different configuration files even though they are the exact same same.

Once I updated the config name from ABC.abc.com to ABC.ABC.COM, saved and apply configurations.

The duplicates configurations files were removed..

Thank you all for your assistance, I really hope this helps someone.

Reach out to me if would like me to walk you through it.
Locked