Return file count
Posted: Thu Oct 01, 2020 9:17 pm
Hi Team,
We are using CheckFile2 to find the names of the files in a path on a server written less than an hour ago.
However, we are looking to modify the service to return the total file count in the path.
Can you please let me know how this can be modified?
The current command is as below:
/usr/local/nagios/libexec/check_nrpe -2 -H hostname -p 5666 -c CheckFile2 -a truncate=900 "path=D:\Program Files (x86)\Send" "pattern=*.mml" max-dir-depth=0 MaxWarn=20 MaxCrit=40 filter+written=lt:60m
We are using CheckFile2 to find the names of the files in a path on a server written less than an hour ago.
However, we are looking to modify the service to return the total file count in the path.
Can you please let me know how this can be modified?
The current command is as below:
/usr/local/nagios/libexec/check_nrpe -2 -H hostname -p 5666 -c CheckFile2 -a truncate=900 "path=D:\Program Files (x86)\Send" "pattern=*.mml" max-dir-depth=0 MaxWarn=20 MaxCrit=40 filter+written=lt:60m