Page 2 of 2

Re: Duplicate Definitions Warning

Posted: Tue Jul 22, 2014 11:54 am
by toleolu
Thanks, I think I got a handle on the print spooler issue, I found multiple hosts selected in the Spooler service in CCM and just removed the extra hosts, that took care of that.

My big problem is the two attached config files for two servers in our Kona hospital, svrkch11 and svrkch4. I know I was kind of all over the map on this post, but if you would take a look at those two config files and see what might be causing the Duplicate Definition warnings for those, I would appreciate it.

Mahalo

Re: Duplicate Definitions Warning

Posted: Tue Jul 22, 2014 10:56 pm
by Box293
toleolu wrote:I'm getting this:
Warning: Duplicate definition found for service 'Uptime' on host 'svrkch11.hhsc.org' (config file '/usr/local/nagios/etc/services/svrkch04.hhsc.org.cfg', starting on line 102)
Warning: Duplicate definition found for service 'Ping' on host 'svrkch11.hhsc.org' (config file '/usr/local/nagios/etc/services/svrkch04.hhsc.org.cfg', starting on line 67)
Warning: Duplicate definition found for service 'Memory Usage' on host 'svrkch11.hhsc.org' (config file '/usr/local/nagios/etc/services/svrkch04.hhsc.org.cfg', starting on line 49)
Warning: Duplicate definition found for service 'CPU Usage' on host 'svrkch11.hhsc.org' (config file '/usr/local/nagios/etc/services/svrkch04.hhsc.org.cfg', starting on line 14)
The service definitions for svrkch04 are applied to:

Code: Select all

host_name  		svrkch04.hhsc.org
hostgroup_name	West Hawaii Servers
For the svrkch04 services ... Uptime, Ping, Memory Usage and CPU Usage ... remove the hostgroup "West Hawaii Servers".

Re: Duplicate Definitions Warning

Posted: Wed Jul 23, 2014 1:01 pm
by toleolu
Thanks again Box, but West Hawaii Servers is a valid host group. Those are the servers at our Kona hospital on the Big Island.

Re: Duplicate Definitions Warning

Posted: Wed Jul 23, 2014 4:54 pm
by Box293
Box293 wrote:The service definitions for svrkch04 are applied to:

Code: Select all

host_name        svrkch04.hhsc.org
hostgroup_name   West Hawaii Servers
I don't have the svrkch11.cfg file to compare but I assume that all of your service definitions for svrkch11.hhsc.org are only assigned to the host_name svrkch11.hhsc.org.

I also assume that svrkch11.cfg is a member of the group "West Hawaii Servers".

When I look at the svrkch04.cfg, the services [Uptime, Ping, Memory Usage and CPU Usage] are assigned to the HOST svrkch04.hhsc.org AND the HOSTGROUP "West Hawaii Servers". So this means that these four services are creating the duplicate services [Uptime, Ping, Memory Usage and CPU Usage] for svrkch11.hhsc.org.

To fix this:
CCM
Services
Click the Uptime service for svrkch04.hhsc.org
Click the Manage Hostgroups button
Remove the "West Hawaii Servers" group from the right
Click Close
Click Save
Repeat for Ping, Memory Usage and CPU Usage

Re: Duplicate Definitions Warning

Posted: Thu Jul 24, 2014 12:16 pm
by toleolu
Oh, got it. Thanks.

Got all my warnings reduced to 5 phantom hosts, after I get those removed, I should be able to run the update again.

Thanks again for all your help. Put another shrimp on the barbie for me mate!!!