mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: fail2ban application was setting the wrong variables (#6582)
This commit is contained in:
committed by
Tony Murray
parent
bdf1616c76
commit
4ba8be2dfe
@@ -10,9 +10,10 @@ $app_id = $app['app_id'];
|
||||
$options = '-O qv';
|
||||
$oid = '.1.3.6.1.4.1.8072.1.3.2.3.1.2.8.102.97.105.108.50.98.97.110';
|
||||
$f2b = snmp_walk($device, $oid, $options);
|
||||
update_application($app, $new_component);
|
||||
$f2b = trim($f2b, '"');
|
||||
update_application($app, $f2b);
|
||||
|
||||
$bannedStuff = explode("\n", $new_component);
|
||||
$bannedStuff = explode("\n", $f2b);
|
||||
|
||||
$total_banned=$bannedStuff[0];
|
||||
$firewalled=$bannedStuff[1];
|
||||
|
Reference in New Issue
Block a user