Page 2 of 2

Re: Configure NTFS mount points disk space monitoring

Posted: Thu Oct 12, 2017 12:42 am
by keerthiprashanths
Yes we have tried it and we got the same error.

Re: Configure NTFS mount points disk space monitoring

Posted: Thu Oct 12, 2017 7:51 am
by keerthiprashanths
@ kyang:-

We have tried it as mentioned earlier

Re: Configure NTFS mount points disk space monitoring

Posted: Thu Oct 12, 2017 11:46 am
by kyang
Can you show me how you defined it in your nsclient.ini file?
I'm not 100% sure, this will fix it but if we are escaping the # with a \ you should have 3 \\\ after C: because the standard in the check has 2 \\
Also can you post the command of how you ran this?

Re: Configure NTFS mount points disk space monitoring

Posted: Mon Oct 16, 2017 3:10 am
by keerthiprashanths
The nsclient.ini file is already attached with the post itself.. :)

Re: Configure NTFS mount points disk space monitoring

Posted: Mon Oct 16, 2017 2:04 pm
by kyang
Got it,

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.3.46 -c CheckDriveSize -a Drive='C:\\\#_test_data_\\\' MinCritFree=15% MinWarnFree=20%
OK All 1 drive(s) are ok|'C:\\\#_test_data_\\\ free'=281.593GB;90.38594;67.78945;0;451.9297 'C:\\\#_test_data_\\\ free %'=62%;20;15;0;100
But it still works like this.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.3.46 -c CheckDriveSize -a Drive='C:\#_test_data_' MinCritFree=15% MinWarnFree=20%
OK All 1 drive(s) are ok|'C:\#_test_data_ free'=281.59249GB;90.38594;67.78945;0;451.9297 'C:\#_test_data_ free %'=62%;20;15;0;100
Can you show me the path you are trying to check on your windows? I would like to try and replicate it so I can create it and test it myself.

All i created in my C: drive was folder like this #_test_data_ and the path is C:\#_test_data_