mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
235 stars 91 forks source link

check_files max-depth=0 did not work #730

Open tinoklauer opened 3 years ago

tinoklauer commented 3 years ago

Issue and Steps to Reproduce

Describe your issue and tell us how to reproduce it.

Hi,

i used max-depth=0 with check_files over check_nrpe for not recursivechecking the path, but then i get "no files found"

With max-depth=1 it work but he check recursive. Witout this parameter check_files search recursive too.

PLEASE PROVIDE COMMAND HERE

command_line $USER1$/check_nrpe -2 -n -H $HOSTADDRESS$ -p $USER6$ -c check_files -a path='$ARG1$' empty-state='ok' empty-syntax='%(status) - %(total) File(s) found' warning=count=$ARG3$ critical=count=$ARG4$ 'ok-syntax=%(status) - %(total) File(s) found' 'max-depth=$ARG5$'

Expected Behavior

Tell us what you think should happen.

max-depth=0 works.

Actual Behavior

Tell us what happens instead.

Details

Additional Details

NSClient++ log:

PLEASE PASTE LOG HERE