Skip to content

Commit 63098f8

Browse files
committed
- fail2ban monitor now supports CentOS and Fedora.
1 parent c95c45b commit 63098f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/mods-available/monitor_core_module.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,8 @@ function monitorFail2ban(){
763763
$type = 'log_fail2ban';
764764

765765
/* This monitoring is only available if fail2ban is installed */
766-
$location = shell_exec('which fail2ban-client');
766+
$location = shell_exec('which fail2ban-client'); // Debian & Ubuntu
767+
if($location == '') $location = shell_exec('which fail2ban'); // CentOS & Fedora
767768
if($location != ''){
768769
/* Get the data of the log */
769770
$data = $this->_getLogData($type);

0 commit comments

Comments
 (0)