Page 1 of 1

check_nrpe put $ at end of check string on solaris

Posted: Wed Jun 04, 2014 10:32 am
by vercetty92
Hi,

I have the same problem with nrpe on solaris.

it appears when there is "$" sing in the command.

Code: Select all

command[check_diskss]=/home/vkwiatkowski/check_disk -w $ARG1$ -c $ARG2$ -A -i "^.*mysql.*$" -e

if I remove the "$" in the nrpe.cfg file, the dollars disappears at the end of the line showed in debug mode.

I have put my regex in nrpe.cfg because $ is a forbidden metacharactere when passing as argument. But here it "breaks" the command line...make me crazy

Re: check_nrpe put $ at end of check string

Posted: Wed Jun 04, 2014 10:43 am
by vercetty92
thus, when there is a $ in the command line, all the arguments ($ARG3$, $ARG4$, etc...) are not transmitted

so need to avoid the usage of $

Re: check_nrpe put $ at end of check string on solaris

Posted: Wed Jun 04, 2014 3:50 pm
by abrist
I split the topic, though the issues are similar, you are using the supported nrpe daemon, whereas the other thread was in reference to nrpe_nt, a very old agent that is unsupported and deprecated. Do you need assistance with your escaping/$ issues?