But when I put that in $ARG1$ using check_snmp command, it screws up the -s part. The string actually contains double quotes. How can I put that in XI so it performs the command 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
I was using the test command. it works fine, disregard this entire thread
I knew test command feature had the issue it had to run as apache not as nagios, but didn't realize there was an issue with escaping.
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
Yep. user restriction, escaping restrictions, you name it. The test check command is really only good for those simple 'vanilla' checks. I will send this thread down the green mile . . .
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.