mickem / nscp

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

Performancesstring from check_files with %(total) #729

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.

I use check_files and the perf-string ist only with %(count) but i need %(total). How can i change the perf-string?

I check folders for specific file masks. As long as the number of files searched for is less than a limit, everything is fine.

PLEASE PROVIDE COMMAND HERE

Nagios command:

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"

Expected Behavior

"perf-config=%(total)"

Tell us what you think should happen.

Actual Behavior

'count'=2538;10;15 to 'count'=0;10;15

Tell us what happens instead.

Details

Additional Details

NSClient++ log:

PLEASE PASTE LOG HERE