summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf.d/python.d/fail2ban.conf11
-rw-r--r--python.d/fail2ban.chart.py3
2 files changed, 3 insertions, 11 deletions
diff --git a/conf.d/python.d/fail2ban.conf b/conf.d/python.d/fail2ban.conf
index d9664e3535..76277108b2 100644
--- a/conf.d/python.d/fail2ban.conf
+++ b/conf.d/python.d/fail2ban.conf
@@ -58,15 +58,6 @@
#
# log_path: 'path to fail2ban.log' # Default: '/var/log/fail2ban.log'
# conf_path: 'path to jail.local/jail.conf' # Default: '/etc/fail2ban/jail.local'
-# conf_dir: 'path to jail.d/' # Default: '' empty
+# conf_dir: 'path to jail.d/' # Default: '/etc/fail2ban/jail.d/'
# exclude: 'jails you want to exclude from autodetection' # Default: '[]' empty list
#------------------------------------------------------------------------------------------------------------------
-# ------------------------------------------------------------------------------------------------------------------
-# 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'
-# conf_dir: '/etc/fail2ban/jail.d/'
-# exclude: 'dropbear apache'
diff --git a/python.d/fail2ban.chart.py b/python.d/fail2ban.chart.py
index 3c298740f3..67352bfb24 100644
--- a/python.d/fail2ban.chart.py
+++ b/python.d/fail2ban.chart.py
@@ -22,7 +22,7 @@ class Service(LogService):
self.order = ORDER
self.log_path = self.configuration.get('log_path', '/var/log/fail2ban.log')
self.conf_path = self.configuration.get('conf_path', '/etc/fail2ban/jail.local')
- self.conf_dir = self.configuration.get('conf_dir', '')
+ self.conf_dir = self.configuration.get('conf_dir', '/etc/fail2ban/jail.d/')
self.bans = dict()
try:
self.exclude = self.configuration['exclude'].split()
@@ -86,6 +86,7 @@ class Service(LogService):
self.data.update(dict([(jail + '_in_jail', 0) for jail in self.jails_list]))
self.bans = dict([(jail, list()) for jail in self.jails_list])
+ self._data_from_check = self.data
self.create_dimensions()
self.info('Plugin successfully started. Jails: %s' % self.jails_list)
return True