I trying to checking a process that have spaces via nrpe:
Code: Select all
[root@OSAKA libexec]# ps -aux | grep dsmc
root 24700 0.0 0.0 328336 4648 ? Sl Aug26 0:00 ./dsmcad
root 24702 0.0 0.0 492988 11888 ? Sl Aug26 0:07 ./dsmc sched
root 29896 0.0 0.0 112652 976 pts/0 S+ 09:45 0:00 grep --color=auto dsmc
[root@OSAKA libexec]# ./check_nrpe -H 127.0.0.1 -c check_procs -a "-C \"dsmc sched\""
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
[root@OSAKA libexec]# ./check_nrpe -H 127.0.0.1 -c check_procs -a "-C dsmc sched"
PROCS WARNING: 1 process with command name 'dsmc' | procs=1;sched;;0;