Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This plugin checks your Server for banned IPs by fail2ban.
Current Version
1.0
Last Release Date
2020-03-22
Owner
Fabian Ihle
Website
https://github.com/n1tr0-5urf3r/icinga2-scripts
Download URL
https://github.com/n1tr0-5urf3r/icinga2-scripts/blob/master/plugins/check_fail2ban
License
GPL
Compatible With
### 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 * banip nagios ALL=NOPASSWD: /usr/bin/fail2ban-client get * banip --with-time 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
Easy to follow instructions, works perfectly. Exaclty what I needed
H, thank you for this plugin,. It works great when I run it locally on the machine where Fail2Ban is running. But I cannot get it running remotely from the Nagios Server. I tried to check it directly with adding "-H " to your command syntax as well as configure a remote NRPE call from Nagios Server to the server where Fail2Ban is running. But the result is still the same: "Error: fail2ban-client not found" What do I do wrong? Thank you, Jakub
Hi, sorry for the late response! it is intended to run this command via NRPE from the nagios server. Are you sure that your nrpe command is defined properly? How does it look like?
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!