Fail2ban
Auto-Discovery
Health Check
Metrics
Logs
The agent will detect Fail2ban on your server and check that the server process stays active.
If you installed Glouton using wget or with a system package Glouton will
gather metrics with no further configuration, otherwise, you need to allow
Glouton to run fail2ban-client status as root. You can do so by adding the
following to /etc/sudoers.d/glouton:
Cmnd_Alias FAIL2BAN = /usr/bin/fail2ban-client status, /usr/bin/fail2ban-client status *glouton ALL=(root) NOEXEC: NOPASSWD: FAIL2BANDefaults!FAIL2BAN !logfile, !syslog, !pam_sessionThe following metrics are gathered:
| Metric | Description |
|---|---|
| service_status | Status of Fail2ban |
| fail2ban_failed | Number of failed authentications |
| fail2ban_banned | Number of banned IP |