Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

svamberg

Reviews(2)
bysvamberg, September 13, 2016
1 of 2 people found this review helpful
check_fail2ban
Output of 0.9.x fail2ban is different (added white characters). This patch fix it:

--- a/check_fail2ban.sh
+++ b/check_fail2ban.sh
@@ -105,7 +105,7 @@ fi
# #####################################################################
# Run the fail2ban-client, and generate the list of operating jails
# #####################################################################
-jail_list=$($fail2ban_client status|grep "list" |cut -f 3 |tr -d ,)
+jail_list=$($fail2ban_client status|grep "list" | cut -d : -f 2 | tr -d ,)

# #####################################################################
# Cycle through all jails, count blocked IP, and build output strings
bysvamberg, September 15, 2015
1 of 1 people found this review helpful
This plugin needs small patch:
--- check_file_content.pl.orig 2015-09-15 13:44:43.941945012 +0200
+++ check_file_content.pl 2015-09-15 13:42:31.572945415 +0200
@@ -56,7 +56,7 @@
my $o_user= undef; # user
my $o_password= undef; # password
my $o_domain= undef; # domain
-my @o_search= undef; # word or chain we search
+my @o_search= (); # word or chain we search
my @o_exception= undef; # exception word or chain we not search
my $o_check_type= undef; # check type
my $o_version= undef; # print version
@@ -288,7 +288,7 @@

# Should match
foreach (@o_search) {
- if ($line =~ m/@o_search/) {
+ if ($line =~ m/$_/) {
if ($exception==1) {
if ($line =~ m/@o_exception/) {
$found=0;