Check_files sum of size from Files

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
af99
Posts: 1
Joined: Wed Mar 11, 2020 10:20 am

Check_files sum of size from Files

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_files sum of size from Files

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked