I asked you to run these two commands as the command that you used to test from the CLI seemed wrong to me. You are using two args in it:
1st - "10%"
2nd - "8% -A ... all this other stuff between the double quotes..."
If I use the "Run check Command" or test the command from commandline, it results in an OK as it should with the override of the thresholds for ulnrepo.
Code: Select all
[[email protected] ~]$ /usr/local/nagios/libexec/negate -t 600 -u OK -s /usr/local/nagios/libexec/check_nrpe -H 10.160.0.94 -t 600 -c check_disk -a "10%" "8% -A -I /OVS/Repositories -I /backup -I /software -I /poolfsmnt -I /root/.gvfs -I /us.* -I /$ -I /home -I /usr -I /var -I /boot -I /ud.* -I /ut.* -I /un.* -I /ur.* -I /ua.* -I /uu.* -I /up.* -e -C -w 4% -c 3% -r /ulnrepo"
You command is defined as such:
Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ $ARG3$
So, you don't need to pass the "-w" or "-c" flags (in $ARG1$ and $ARG2$) in your check, as they are already defined in the command. The 1st arg you are passing ("10%") is OK, but in the second one, you are passing "-w" and "-c" (-w 4% -c 3% -r /ulnrepo)...
I may be wrong, but it seems this way, the "-c" is passed twice. Other words, you should be using 3 args, not two. In $ARG1$ and $ARG2$, you should be passing percentages only (no flags). In the $ARG3$, you should be passing the flags ("-w" and "-c") plus the percentages.