Page 1 of 1

< in command being changed to &lt;

Posted: Tue Jul 08, 2014 12:19 pm
by BanditBBS
I am trying to create a new command that has a < in it but whenever I save the command the < is being changed to <

I know this used to work in XI2012. When I select the command it shows as < though. I am having an issue and no idea of this is causing it or not.

Re: < in command being changed to &lt;

Posted: Tue Jul 08, 2014 12:36 pm
by tmcdonald
If it is properly saved in the config file I would assume it is just a CCM/XI bug.

Re: < in command being changed to &lt;

Posted: Tue Jul 08, 2014 1:25 pm
by BanditBBS
If I do a test command I get this as the command:

Code: Select all

/usr/bin/ssh nagios@********.com '/usr/bin/perl - --connect=****/****@TEST1EBS1 --mode=invalid-objects -warning=185 -critical=190' -- < /usr/local/nagios/libexec/check_oracle_health
It doesn't work from the test but I can put that command in cli and it works fine. But the checks fail saying (Return code of 127 is out of bounds - plugin may be missing).

Any hints? I know I've worked through this before and I used this at the old job and it worked fine.

Re: < in command being changed to &lt;

Posted: Tue Jul 08, 2014 3:51 pm
by tmcdonald
Might need to use a $USERX$ for this?

Re: < in command being changed to &lt;

Posted: Tue Jul 08, 2014 3:59 pm
by BanditBBS
tmcdonald wrote:Might need to use a $USERX$ for this?
Huh?

Also, I just looked at the written cfg file and it does have < instead of < in it. So this ccm bug has to be part of my issue.

EDIT: I just tested, the CCM bug is my issue. I included the < in $ARG1$ and put that in the service definition and it now works. Any way for me to get this to write the command to the db/cfg file properly?

Re: < in command being changed to &lt;

Posted: Tue Jul 08, 2014 4:49 pm
by BanditBBS
FYI - I got around this by creating the commands and putting them in a file for XI to import :) God I am sneaky :twisted:

But someone there going to create an internal bug report or do you want me to do it on the tracker? Answer that and close the thread!

Re: < in command being changed to &lt;

Posted: Tue Jul 08, 2014 4:56 pm
by abrist
Bug reported. Closing 'er ups.