fail2ban_plugin: module configuration file update
Ilya committed
Feb 18, 2017 at 13:52 UTC
76405261eb5c4c5e8a108695647c26240b428b00
2 files changed
+8
-13
conf.d/python.d/fail2ban.conf
+7
-12
@@ -56,22 +56,17 @@
56
#
57
# Additionally to the above, fail2ban also supports the following:
58
#
59
-# log_path: 'path to fail2ban.log' # Default: '/var/log/fail2ban.log'
59
+# log_path: 'path to fail2ban.log' # Default: '/var/log/fail2ban.log'
60
# conf_path: 'path to jail.local/jail.conf' # Default: '/etc/fail2ban/jail.local'
61
-# exclude: 'jails you want to exclude from autodetection' # Default: '[]' empty list
61
+# conf_dir: 'path to jail.d/' # Default: '' empty
62
+# exclude: 'jails you want to exclude from autodetection' # Default: '[]' empty list
63
#------------------------------------------------------------------------------------------------------------------
63
-# IMPORTANT Information
64
-#
65
-# fail2ban.log file MUST BE readable by netdata.
66
-# A good idea is to do this by adding the
67
-# # create 0640 root netdata
68
-# to fail2ban conf at logrotate.d
69
-#
64
# ------------------------------------------------------------------------------------------------------------------
65
# AUTO-DETECTION JOBS
66
# only one of them will run (they have the same name)
67
74
-#local:
75
-# log_path: '/var/log/fail2ban.log'
76
-# conf_path: '/etc/fail2ban/jail.local'
68
+local:
69
+ log_path: '/var/log/fail2ban.log'
70
+ conf_path: '/etc/fail2ban/jail.local'
71
+# conf_dir: '/etc/fail2ban/jail.d/'
72
# exclude: 'dropbear apache'
python.d/fail2ban.chart.py
+1
-1
@@ -83,7 +83,7 @@ class Service(LogService):
83
84
def create_dimensions(self):
85
self.definitions = {
86
- 'jails_group': {'options': [None, "Jails ban statistics", "bans/s", 'Jails', 'jail.ban', 'line'],
86
+ 'jails_group': {'options': [None, "Jails ban statistics", "bans/s", 'jails', 'jail.ban', 'line'],
87
'lines': []}}
88
for jail in self.jails_list:
89
self.definitions['jails_group']['lines'].append([jail, jail, 'incremental'])