]> arthur.barton.de Git - netdata.git/commitdiff
fail2ban_plugin: module configuration file update
authorIlya <ilyamaschenko@gmail.com>
Sat, 18 Feb 2017 04:52:01 +0000 (13:52 +0900)
committerIlya <ilyamaschenko@gmail.com>
Sat, 18 Feb 2017 04:52:01 +0000 (13:52 +0900)
conf.d/python.d/fail2ban.conf
python.d/fail2ban.chart.py

index cd805be8d20ea53dee59baf882209989dbf9da7b..d9664e35355432dd9e19719f2e246d4dfc95d001 100644 (file)
 #
 # Additionally to the above, fail2ban also supports the following:
 #
-#     log_path: 'path to fail2ban.log'                         # Default: '/var/log/fail2ban.log'
+#     log_path:  'path to fail2ban.log'                                # Default: '/var/log/fail2ban.log'
 #     conf_path: 'path to jail.local/jail.conf'                        # Default: '/etc/fail2ban/jail.local'
-#     exclude: 'jails you want to exclude from autodetection'  # Default: '[]' empty list
+#     conf_dir:  'path to jail.d/'                             # Default: '' empty
+#     exclude:   'jails you want to exclude from autodetection'        # Default: '[]' empty list
 #------------------------------------------------------------------------------------------------------------------
-# IMPORTANT Information
-#
-# fail2ban.log file MUST BE readable by netdata.
-# A good idea is to do this by adding the 
-# # create 0640 root netdata
-# to fail2ban conf at logrotate.d
-#
 # ------------------------------------------------------------------------------------------------------------------
 # AUTO-DETECTION JOBS
 # only one of them will run (they have the same name)
 
-#local:
-# log_path: '/var/log/fail2ban.log'
-# conf_path: '/etc/fail2ban/jail.local'
+local:
+ log_path: '/var/log/fail2ban.log'
+ conf_path: '/etc/fail2ban/jail.local'
+# conf_dir: '/etc/fail2ban/jail.d/'
 # exclude: 'dropbear apache'
index b2494568fda189f8e87906996b5b18765b10bb77..85ac2d43fae274f1959624d3dfa14ad91f1e2cb2 100644 (file)
@@ -83,7 +83,7 @@ class Service(LogService):
 
     def create_dimensions(self):
         self.definitions = {
-            'jails_group': {'options': [None, "Jails ban statistics", "bans/s", 'Jails', 'jail.ban', 'line'],
+            'jails_group': {'options': [None, "Jails ban statistics", "bans/s", 'jails', 'jail.ban', 'line'],
                             'lines': []}}
         for jail in self.jails_list:
             self.definitions['jails_group']['lines'].append([jail, jail, 'incremental'])