check_files by extension
Posted: Mon Mar 12, 2018 7:35 am
Hi,
Using check_files I can specify a pattern to filter the files by extension and this works:
./check_nrpe -H 192.168.1.1 -c check_files -a path="D:\\Testing" pattern="*.txt"
I need to be able to find files that match one of three extensions: txt pdf csv
I have tried specifying multiple file extensions however this does not work.
./check_nrpe -H 192.168.1.1 -c check_files -a path="D:\\Testing" pattern="*.txt" pattern="*.pdf" pattern="*.csv"
Using check_files I can specify a pattern to filter the files by extension and this works:
./check_nrpe -H 192.168.1.1 -c check_files -a path="D:\\Testing" pattern="*.txt"
I need to be able to find files that match one of three extensions: txt pdf csv
I have tried specifying multiple file extensions however this does not work.
./check_nrpe -H 192.168.1.1 -c check_files -a path="D:\\Testing" pattern="*.txt" pattern="*.pdf" pattern="*.csv"