Page 1 of 1

Monitoring different file extensions

Posted: Fri Sep 04, 2020 3:53 am
by G_Deshpande
I would like to monitor different file extensions in log file or stale file monitoring.
Right now we can monitor only one file extension like *.txt but if if i wish to monitor 2 file extension like *.txt & *.csv at same path/location, then there is no provision to achieve that.
Example-
check_files! -a path='C:\temp\Stale\' pattern=*.txt max-depth=1 'critical=count>0' 'empty-state=OK' 'filter=written < -5m' top-syntax='${count} File/s Found'
Any suggestion?

Re: Monitoring different file extensions

Posted: Fri Sep 04, 2020 3:59 pm
by scottwilkerson
I'm not completely familiar with this but can't you change the following

Code: Select all

pattern=*.txt
to

Code: Select all

pattern=*.*