objects begining with a space are allowed but cause problems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

objects begining with a space are allowed but cause problems

Post by Box293 »

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rdedon
Posts: 578
Joined: Sat Nov 20, 2010 4:51 pm

Re: objects begining with a space are allowed but cause problems

Post by rdedon »

Thank you for the heads up! :-)
Rene deDon
Technical Team
___
Nagios Enterprises, LLC
Web: http://www.nagios.com
Locked