Page 1 of 1

Check_files sum of size from Files

Posted: Thu Mar 12, 2020 3:39 am
by af99
Hello,

i want to Monitor whether the sum of the size of a selection of files is larger than a threshold. This files must be from today.
i tryed this but the result shows me the size of each file and i dont know how i select the filter for today
/usr/local/nagios/libexec/check_nrpe -H HOST -n -c check_files -a path=F:\oracle\oradata\backup\UNIWARE\ pattern=. “filter=creation > -1m” “crit=size<50g” “max-depth=1”

Thanks for Help
Andreas

Re: Check_files sum of size from Files

Posted: Thu Mar 12, 2020 3:37 pm
by scottwilkerson
As far as I am aware there isn't a way to check the sum of the files in nsclient++, but I could be wrong.
NSClient++ isn't our project so they may know another method, the documentation for their project can be found here
https://docs.nsclient.org/reference/win ... heck_files