diff --git a/server/mods-available/monitor_core_module.inc.php b/server/mods-available/monitor_core_module.inc.php index 270f92ed28b018841fb85343973db82e6cec5f8c..beecd8ab41efce3ee28c54a1939c7401e257a2cf 100644 --- a/server/mods-available/monitor_core_module.inc.php +++ b/server/mods-available/monitor_core_module.inc.php @@ -763,7 +763,8 @@ class monitor_core_module { $type = 'log_fail2ban'; /* This monitoring is only available if fail2ban is installed */ - $location = shell_exec('which fail2ban-client'); + $location = shell_exec('which fail2ban-client'); // Debian & Ubuntu + if($location == '') $location = shell_exec('which fail2ban'); // CentOS & Fedora if($location != ''){ /* Get the data of the log */ $data = $this->_getLogData($type);