problem parsing the arguments containing "--"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sureshbabuy
Posts: 23
Joined: Wed Aug 26, 2015 11:31 am

problem parsing the arguments containing "--"

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem parsing the arguments containing "--"

Post 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.
Former Nagios employee
sureshbabuy
Posts: 23
Joined: Wed Aug 26, 2015 11:31 am

Re: problem parsing the arguments containing "--"

Post by sureshbabuy »

thanks that works
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: problem parsing the arguments containing "--"

Post by hsmith »

Anything else we can do for you regarding this, or is this one okay to lock up?
Former Nagios Employee.
me.
sureshbabuy
Posts: 23
Joined: Wed Aug 26, 2015 11:31 am

Re: problem parsing the arguments containing "--"

Post by sureshbabuy »

no issues regarding the parsing
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: problem parsing the arguments containing "--"

Post 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.
Former Nagios Employee
Locked