Skip to content

A plugin to use in icinga / nagios that monitors your fail2ban jails.

Notifications You must be signed in to change notification settings

solute/check_fail2ban

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Ihlecloud

Icinga2 Scripts

check_fail2ban

Example



check_fail2ban

Installation

This plugin requires fail2ban and sudo installed. Also several commands must be runnable by nagios user with sudo, so add the following to visudo:

    # Needed for check_fail2ban
    nagios  ALL=NOPASSWD: /usr/bin/fail2ban-client status
    nagios  ALL=NOPASSWD: /usr/bin/fail2ban-client status *
    nagios  ALL=NOPASSWD: /usr/bin/fail2ban-client get * bantime

Usage

        ./check_fail2ban -h Display this message
                         -w <warning level> defaults to 10
                         -c <crit level> defaults to 20
                         -t Time: Display until when IPs will be banned
                         -j <jaillist> i.e. comma separated string of jails, i.e. ssh,postfix
                            Only check those jails

Examples

        ./check_fail2ban -t -w 5 -c 10 -j ssh,postfix
        ./check_fail2ban -t

Example Output

Fail2Ban


Donation

If you like my work a donation is very welcome :)

About

A plugin to use in icinga / nagios that monitors your fail2ban jails.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%