Page 1 of 2

Problem with cfg files (Config_name) in Nagios XI

Posted: Thu Mar 27, 2014 8:44 am
by morabanc
Hi,

We find a problem when we create a service check.

I give you an example to understand better:

Service Check 1
Config Name: h_world
Service description: check_switch_1
CTG file name: /usr/local/nagios/etc/services/h_world.ctg

Service Check 2
Config Name: h_world
Service description: check_switch_2
CTG file name: /usr/local/nagios/etc/services/h_world.ctg

Service Check 3
Config Name: h_WORLD
Service description: check_router_1
CTG file name: /usr/local/nagios/etc/services/h_WORLD.ctg

Service Check 4
Config Name: h_WORLD
Service description: check_router_2
CTG file name: /usr/local/nagios/etc/services/h_WORLD.ctg

After I create this services if I go to nagios console, I must find the file "h_WORLD.ctg" with check_router_1 and check_router_2 services and another file "h_world.ctg" with check_switch_1 and check_switch_2 services, right ?

But, I don't know why, nagios create the file "h_WORLD.ctg" with check_router_1, check_router_2, check_switch_1 and check_switch_2 services and file "h_world.ctg" with check_router_1, check_router_2, check_switch_1 and check_switch_2 services too.

I think it doesn't diferentiate case sensitive and write the changes in both files.

So, we have a duplicate services.

Finally, I receive this when we check nagios configuration:

Warning: Duplicate definition found for service 'check_router_2' on host 'h_world' (config file '/usr/local/nagios/etc/services/h_world.cfg', starting on line 612)

I hope I explained clearly


Thanks in advance
Eric

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Thu Mar 27, 2014 9:54 am
by abrist
What version of XI are you running?

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Thu Mar 27, 2014 10:52 am
by morabanc
Hi Abrist,

Here you are:
Nagios XI 2012R1.8 Copyright © 2008-2014 Nagios Enterprises, LLC.


Thanks

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Thu Mar 27, 2014 2:46 pm
by abrist
There could be an issue with caps, or could be some oddness in your config (like hostgroup inheriting or the services add to each other's hosts, etc). Could you open a ticket by sending an email to [email protected]. Include your profile.zip and a link to this thread in your email.

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Fri Mar 28, 2014 6:38 am
by morabanc
Hi Abrist,

How can I find profile.zip ?
I only find this one ----> /usr/local/nagiosxi/tmp/component-profile.zip


Thanks

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Fri Mar 28, 2014 9:35 am
by tmcdonald
In the XI web interface, go to Admin -> System Profile, then click the blue download link to the right.

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Mon Mar 31, 2014 6:53 am
by morabanc
Thanks :)

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Mon Mar 31, 2014 10:14 am
by abrist
Great, go ahead and email [email protected] with a link to this thread and your profile. We will look over the profile and either give you a route to resolution or set up a time for a remote session.

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Fri May 09, 2014 1:54 am
by morabanc
Hi, I send some emails but nobody answer me.

Re: Problem with cfg files (Config_name) in Nagios XI

Posted: Fri May 09, 2014 9:41 am
by tmcdonald
Can you PM me the profile and the email address you sent the ticket in from? It is possible you sent it from an email that is not the official contact for your organization, so it never made it through.