1
0
mirror of https://github.com/librenms/librenms-agent.git synced 2024-05-09 09:54:52 +00:00

use $f2bc for getting jail status now and not just only overall status

This commit is contained in:
VVelox
2017-02-23 09:13:59 -06:00
committed by GitHub
parent 1e160b86e4
commit 0a78888889

View File

@@ -76,7 +76,7 @@ if (defined( $opts{u} )){
while(defined($jails[$int])){
#get the total for this jail
my $jailStatusOutput=`fail2ban-client status $jails[$int]`;
my $jailStatusOutput=`$f2bc status $jails[$int]`;
my @jailStatusOutputA=split(/\n/, $jailStatusOutput);
my ( $jailTotal )=grep(/Currently\ banned\:/, @jailStatusOutputA);
$jailTotal=~s/.*\://;