Check Size of a folder with check_files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bwarfff
Posts: 1
Joined: Mon Oct 12, 2015 9:39 am

Check Size of a folder with check_files

Post 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 ?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check Size of a folder with check_files

Post by rkennedy »

Can you show us the full output that goes with the commands you're executing?
Former Nagios Employee
Locked