Page 1 of 1
problem parsing the arguments containing "--"
Posted: Mon Sep 21, 2015 5:35 am
by sureshbabuy
nrpe has problem understanding the arguments containing "--".
EG:- ./check_nrpe -H $HOSTADDR$ -c "check_hardware" -a "--chassis --storage"
nrpe is unable to parse the arguments. Is there escape sequence needed for them ?
When executed individually , the script is running absolutely fine
Re: problem parsing the arguments containing "--"
Posted: Mon Sep 21, 2015 9:49 am
by tmcdonald
What is the output when you run it this way? Two things you can try are escaping with back slashes like \-\- or replacing the double quotes with single quotes.
Re: problem parsing the arguments containing "--"
Posted: Fri Oct 09, 2015 8:29 am
by sureshbabuy
thanks that works
Re: problem parsing the arguments containing "--"
Posted: Fri Oct 09, 2015 9:14 am
by hsmith
Anything else we can do for you regarding this, or is this one okay to lock up?
Re: problem parsing the arguments containing "--"
Posted: Wed Nov 18, 2015 11:10 am
by sureshbabuy
no issues regarding the parsing
Re: problem parsing the arguments containing "--"
Posted: Wed Nov 18, 2015 11:16 am
by rkennedy
Glad to see this working. I'll close this thread out now, but feel free to open another if you ever need assistance.