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.
< in command being changed to <
< in command being changed to <
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: < in command being changed to <
If it is properly saved in the config file I would assume it is just a CCM/XI bug.
Former Nagios employee
Re: < in command being changed to <
If I do a test command I get this as the command:
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.
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
Any hints? I know I've worked through this before and I used this at the old job and it worked fine.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: < in command being changed to <
Huh?tmcdonald wrote:Might need to use a $USERX$ for this?
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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: < in command being changed to <
FYI - I got around this by creating the commands and putting them in a file for XI to import
God I am sneaky
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!
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!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Re: < in command being changed to <
Bug reported. Closing 'er ups.
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.
"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.