Problem with cfg files (Config_name) in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Problem with cfg files (Config_name) in Nagios XI

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

What version of XI are you running?
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.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Hi Abrist,

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


Thanks
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
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.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Hi Abrist,

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


Thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

In the XI web interface, go to Admin -> System Profile, then click the blue download link to the right.
Former Nagios employee
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Thanks :)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
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.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

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

Post by morabanc »

Hi, I send some emails but nobody answer me.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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.
Former Nagios employee
Locked