help me escape (NRPE check_files path)
Posted: Sat Jun 04, 2016 12:17 pm
I am just not getting this right. I am doing a file count from nrpe - it works from the command line
but when I try to use that in service management I get a return like this
So help me out ... where is the definitive guide to getting the escaping right to correctly pass this to nrpe ???
Code: Select all
./check_nrpe -H 2.2.2.2 -n -t 60 -c check_files -a path='c:\path\to\files' pattern=*.* 'warning=count>500' 'critical=count>1000' top-syntax='${status}: ${problem_count}/${count} files' 'empty-state=warn'Code: Select all
/usr/local/nagios/libexec/check_nrpe -H 2.2.2.2 -t 30 -c check_files -a path='c:'c:\path\to\files' pattern=\*.\* 'warning=count\>500' 'critical=count\>1000' top-syntax='\$\{status\}: \$\{problem_count\}/\$\{count\} files' 'empty-state=ok'
OUTPUT: CHECK_NRPE: Socket timeout after 30 seconds.