check_nrpe put $ at end of check string on solaris

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vercetty92
Posts: 5
Joined: Thu Dec 19, 2013 4:25 am

check_nrpe put $ at end of check string on solaris

Post 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
vercetty92
Posts: 5
Joined: Thu Dec 19, 2013 4:25 am

Re: check_nrpe put $ at end of check string

Post 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 $
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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?
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.
Locked