From 6a888f928adc1439e87e6a01e2882da28b7de3eb Mon Sep 17 00:00:00 2001 From: "Rinck H. Sonnenberg" Date: Fri, 3 Apr 2020 14:24:39 +0200 Subject: [PATCH] added jail parameter to help/docs --- files/nagios/README | 5 ++++- files/nagios/check_fail2ban | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/files/nagios/README b/files/nagios/README index 324260ff..aee92857 100644 --- a/files/nagios/README +++ b/files/nagios/README @@ -50,7 +50,7 @@ Answer should be "pong" Help ---- -Usage: //check_fail2ban [-p] [-D "CHECK FAIL2BAN ACTIVITY"] [-v] [-c 2] [-w 1] [-s //socket] [-P /usr/bin/fail2ban-client] +Usage: //check_fail2ban [-p] [-D "CHECK FAIL2BAN ACTIVITY"] [-v] [-c 2] [-w 1] [-s //socket] [-P /usr/bin/fail2ban-client] [-j ] Options: -h, --help @@ -74,6 +74,9 @@ Options: default is unset -p, --perfdata If you want to activate the perfdata output + -j, --jail + Specify the name of the specific jail to monitor + omitted by default, i.e. all jails are being monitored -v, --verbose Show details for command-line debugging (Nagios may truncate the output) diff --git a/files/nagios/check_fail2ban b/files/nagios/check_fail2ban index bbfa63aa..f893ed56 100755 --- a/files/nagios/check_fail2ban +++ b/files/nagios/check_fail2ban @@ -243,7 +243,7 @@ $script_name version $version by $author This plugin checks if the fail2ban server is running and how many IPs are currently banned. You can use this plugin to monitor all the jails or just a specific jail. -Usage: //$script_name [-p] [-D "$display"] [-v] [-c 2] [-w 1] [-s //socket] [-P /usr/bin/fail2ban-client] +Usage: //$script_name [-p] [-D "$display"] [-v] [-c 2] [-w 1] [-s //socket] [-P /usr/bin/fail2ban-client] [-j ] Options: -h, --help @@ -267,6 +267,9 @@ Options: default is unset -p, --perfdata If you want to activate the perfdata output + -j, --jail + Specify the name of the specific jail to monitor + omitted by default, i.e. all jails are being monitored -v, --verbose Show details for command-line debugging (Nagios may truncate the output)