Page 1 of 1

Check Size of a folder with check_files

Posted: Thu Apr 07, 2016 4:48 am
by bwarfff
Hello
I would like to monitor the size of a folder.
I would like to use the plugin check_files, inluded when we install NSClient++

My server is windows server 2012, and I have installed the following version of nsclient++ : Version: 0.4.4.15

I have done those commands :
./check_nrpe -H 10.10.10.10 -c check_files -a 'path=C:\Windows\System32\spool\PRINTERS\' 'filter=size gt 1K' 'critical=count gt 100M'
./check_nrpe -H 10.10.10.10 -c check_files -a 'path=C:\Windows\System32\spool\PRINTERS\' 'critical=total > 100M'
./check_nrpe -H 10.10.10.10 -c check_files -a 'path=C:\Windows\System32\spool\PRINTERS\' 'filter=total gt 100M' 'critical=total gt 100M'

I have tried to have the size of each file and if it's greater than 100M, it's a warning. But It's not a success for me.

Could you help me please ? It's possible with this plugin or I have to use an external script ?

Re: Check Size of a folder with check_files

Posted: Thu Apr 07, 2016 10:08 am
by rkennedy
Can you show us the full output that goes with the commands you're executing?