Problem with cfg files (Config_name) in Nagios XI
Posted: Thu Mar 27, 2014 8:44 am
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
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