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.
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
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.