illegal characters in object

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
BenCowan
Posts: 86
Joined: Thu Jul 28, 2011 11:34 am

illegal characters in object

Post by BenCowan »

Sorry, if this has already been addressed, but I didn't see any specific
match to my issue...

When I first started using XI, I named most my Templates and Commands
to have the first character be an "@". This conveniently floated all my stuff
to the top.

The latest versions of XI, require me to resort to the Legacy CCM, when
updating my configuration.

I saw some posts about this, but just wanted to make sure this will be
corrected down the road, or do I need to start renaming stuff????
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: illegal characters in object

Post by abrist »

The "@" is considered an illegal char for the "config name". So you should start changing names, though you can use the "@" symbol in the alias and the next release will allow the quick find to search aliases. Do note that you should update to 2012R1.3 (if you have not already and can) before you start renaming config names as there was a bug in previous versions that would not allow for config names to be changed cleanly.
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.
BenCowan
Posts: 86
Joined: Thu Jul 28, 2011 11:34 am

Re: illegal characters in object

Post by BenCowan »

I'm not trying to be difficult here, and if what you say is true, I can rename everything, however,
I am just trying to understand something. NagiosXI is a tool for configuring Nagios, and also
an alternative monitoring interface.

If having templates and commands beginning with '@' work in Nagios and NagiosXI now, why
do they have to become illegal all of a sudden? Is this a just a limitation of the code for future
enhancements?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: illegal characters in object

Post by mguthrie »

The reason certain characters are restricted for object names is because they're known to cause unpredictable behavior. This isn't a "new" feature as far as the monitoring engine is concerned, but some javascript sanity checking has been added in order to try and minimize problems caused by special characters.

I might suggest an underscore to accomplish the same thing as the @ character.
BenCowan
Posts: 86
Joined: Thu Jul 28, 2011 11:34 am

Re: illegal characters in object

Post by BenCowan »

Ok, thank you.
Locked