Skip to content

lfuelling/fail2ban-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fail2Ban Exporter

This is a Prometheus exporter for Fail2Ban.

It uses fail2ban-client to scrape information and serves it via HTTP on port 9635.

Usage

  1. Clone this repo, cd into it
  2. Build: $ mvn clean install
  3. Configure: $ vi src/main/resources/application.properties
  4. Run: $ java -jar target/fail2ban-exporter-<version>-jar-with-dependencies.jar

When using server.metrics.sudo=true, be sure to add <user> ALL(ALL) NOPASSWD: /usr/bin/fail2ban-client to your sudoers file.

This project is based on this exporter which generates a .prom file instead of serving HTTP.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages