Commit 63098f82 authored by Falko Timme's avatar Falko Timme

- fail2ban monitor now supports CentOS and Fedora.

parent c95c45ba
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment