Search found 3 matches

by phan
Wed Nov 23, 2011 9:27 pm
Forum: Open Source Nagios Projects
Topic: Using Argument with Space and Double Quote in check_nrpe
Replies: 6
Views: 10022

Re: Using Argument with Space and Double Quote in check_nrpe

Tried the single quote around the parameter value, didn't work either. Tried the single quote around the entire sentence to be passed to the -a switch, didn't work either. Tried to put the double quote around the $ARGS1 in nrpe.cfg, but that did not work either. So I ended up hardcoding the paramete...
by phan
Tue Nov 22, 2011 8:35 pm
Forum: Open Source Nagios Projects
Topic: Using Argument with Space and Double Quote in check_nrpe
Replies: 6
Views: 10022

Re: Using Argument with Space and Double Quote in check_nrpe

Hi,

I did try the escape backslash, but that did not work unfortunately.

What I had would work if I just execute the script by itself, but as soon as I put the parameters in the -a switch of check_nrpe, it doesn't work.
by phan
Tue Nov 22, 2011 6:04 am
Forum: Open Source Nagios Projects
Topic: Using Argument with Space and Double Quote in check_nrpe
Replies: 6
Views: 10022

Using Argument with Space and Double Quote in check_nrpe

Hello experts, I would like to know if there is any way to submit a string of argument that contains space and double quotation to check_nrpe. So for example, my line would be something like: check_nrpe -H 192.168.0.1 -c nagios_mychecker -a "--userName phan --mode check_error --errorCode "...