From 63098f8292b8c7df4c2a5bbcc002abd85f73833b Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Thu, 05 Mar 2009 12:48:33 -0500 Subject: [PATCH] - fail2ban monitor now supports CentOS and Fedora. --- server/mods-available/monitor_core_module.inc.php | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/server/mods-available/monitor_core_module.inc.php b/server/mods-available/monitor_core_module.inc.php index 270f92e..beecd8a 100644 --- a/server/mods-available/monitor_core_module.inc.php +++ b/server/mods-available/monitor_core_module.inc.php @@ -763,7 +763,8 @@ $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); -- Gitblit v1.9.1