atlantis:~# /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p / -p
/drbd/
DISK OK - free space: / 796 MB (23% inode=69%); /drbd 9094 MB (94%
inode=96%);| /=2575MB;2840;3195;0;3551 /drbd=482MB;8071;9080;0;10089
This is the configuration that I have in
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 15% -c 10%
-p / - /drbd
For debugging, you should run the exact same command as the nrpe daemon
user (e.g. nagios) and look for the differences.
If you see different output, you can try it with the setuid (chmod u+s
/usr/local/nagios/libexec/check_disk) and try it again. Maybe this
helps.