for example, the disk check is configured as so: command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ $ARG3$
So why does this work:
Code: Select all
[root@iss-chi-nag05 ~]# /usr/local/nagios/libexec/check_nrpe -H tlc-365-dap01.tlc.itciss.com -c check_disk -a "5%" "2% -A -I /root/.gvfs -x /software_stage -t 240 -e"
DISK OK| /=838MB;1883;1943;0;1983 /tmp=1103MB;9423;9720;0;9919 /usr=3539MB;14134;14580;0;14878 /var=1356MB;14134;14580;0;14878 /boot=40MB;93;96;0;98 /dev/shm=0MB;7782;8028;0;8192 /ua3001=56733MB;97280;100352;0;102400 /us3001=8041MB;48640;50176;0;51200 /uu3001=26517MB;48640;50176;0;51200 /up3001=1585MB;48640;50176;0;51200 /interface=18MB;19456;20070;0;20480 /ua3002=172MB;19150;19754;0;20158
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H tlc-365-dap01.tlc.itciss.com -c check_disk -a "5%" "2%" "-A -I /root/.gvfs -x /software_stage -t 240 -e"EDIT #1:
Wow, adding a space resolved it:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H tlc-365-dap01.tlc.itciss.com -c check_disk -a "5%" "2%" " -A -I /root/.gvfs -x /software_stage -t 240 -e"