meanwhile in the bat cave...
Works fine on the commandline, but not trough nrpe ...
Commandline on the remote server:
./check_dirsize -d /ConnectionsContentStoreLink/blogs/upload/f/b/c/fbc40af7-f364-4114-bd59-6cdddd04f6d0/BLOGS_UPLOADED_IMAGES -w 2000 -c 2048 -f
1698 MB - ok|'size'=1698MB;2000;2048
On the nagios-server commandline:
./check_nrpe -H linux-host -c check_dirsize -a '-d /ConnectionsContentStoreLink/blogs/upload/f/b/c/fbc40af7-f364-4114-bd59-6cdddd04f6d0/BLOGS_UPLOADED_IMAGES -w 2000 -c 2048 -f'
Error: invalid option -- 'w' /usr/bin/du
nrpe.cfg:
command[check_dirsize]=/usr/lib64/nagios/plugins/check_dirsize -d '$ARG1$' -w '$ARG2$' -c '$ARG3$' -f
Tried several options in the nrpe.cfg, but did not get it to work....