I have a check defined in nrpe.conf
Code: Select all
command[proc_myjob]=/usr/lib64/nagios/plugins/check_procs -c 1:1 --ereg-argument-array="^[u]myjob.*--instance Primary --mission myjob"
When I define the below in nrpe.conf
Code: Select all
command[check_procs_test]=/usr/lib64/nagios/plugins/check_procs -c $ARG1$ --ereg-argument-array=$ARG2$
Code: Select all
check_procs_test -a 1:1 "^[u]myjob.*--instance Primary --mission myjob"
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_nrpe -H myhost -t 30 -c check_procs_test -a 1:1 "\^\[u\]myjob.\*--instance Primary --mission myjob"
OUTPUT: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.Code: Select all
Nov 17 14:32:53 myhost nrpe[17877]: Error: Request contained illegal metachars!
Nov 17 14:32:53 myhost nrpe[17877]: Client request was invalid, bailing out...Code: Select all
nrpe-2.15-2.el7.x86_64
XI 5.2.9
check_procs v2.0.3 (nagios-plugins 2.0.3)