objects begining with a space are allowed but cause problems
Posted: Mon Jan 03, 2011 11:17 pm
Using Core Configuration Manager, objects can begin with a space however if there is another object with the same name (without space at begining) it will cause Duplicate definition errros when applying configuration.
For example:
I duplicate a host
I edit the duplicated host
I add a space to the begining of the host_name directive and delete the (1) charcters at the end
I mark the host as active
I save the host
I apply configuration and it fails, the error in the config snapshot is "Warning: Duplicate definition found for xxx"
This occurs in the following areas of Core Configuation Manager:
Hosts
Host Groups
Service Groups
Contacts
Contact Groups
Time Periods
Host Templates
Service Templates
Contact Templates
Commands
The following areas do not have any problem saving objects with a space at the begining and another object exists with the same name:
Services
Host Escalation
Service Escalation
This occurs on Nagios XI 2009R1.3G, VMware image running on ESXi.
I don't have any desire in using spaces at the begining of objects, I discovered it by mistake and thought you would like to know.
For example:
I duplicate a host
I edit the duplicated host
I add a space to the begining of the host_name directive and delete the (1) charcters at the end
I mark the host as active
I save the host
I apply configuration and it fails, the error in the config snapshot is "Warning: Duplicate definition found for xxx"
This occurs in the following areas of Core Configuation Manager:
Hosts
Host Groups
Service Groups
Contacts
Contact Groups
Time Periods
Host Templates
Service Templates
Contact Templates
Commands
The following areas do not have any problem saving objects with a space at the begining and another object exists with the same name:
Services
Host Escalation
Service Escalation
This occurs on Nagios XI 2009R1.3G, VMware image running on ESXi.
I don't have any desire in using spaces at the begining of objects, I discovered it by mistake and thought you would like to know.