* First, we have to detect, if there is any monitoring-data.
* If not (because the destribution is not supported) show this.
* If not (because rkhunter is not installed) show this.
*/
$data=unserialize($record['data']);
if($data['output']==''){
...
...
@@ -392,6 +392,42 @@ function showRKHunter()
return$html;
}
functionshowFail2ban()
{
global$app;
/* fetch the Data from the DB */
$record=$app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'log_fail2ban' and server_id = ".$_SESSION['monitor']['server_id']." order by created desc");