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:
@@ -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/.*\://;
|
||||
|
Reference in New Issue
Block a user