You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: interface/web/monitor/tools.inc.php
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -374,7 +374,7 @@ function showRKHunter()
374
374
375
375
/*
376
376
* First, we have to detect, if there is any monitoring-data.
377
-
* If not (because the destribution is not supported) show this.
377
+
* If not (because rkhunter is not installed) show this.
378
378
*/
379
379
$data = unserialize($record['data']);
380
380
if ($data['output'] == ''){
@@ -392,6 +392,42 @@ function showRKHunter()
392
392
return$html;
393
393
}
394
394
395
+
functionshowFail2ban()
396
+
{
397
+
global$app;
398
+
399
+
/* fetch the Data from the DB */
400
+
$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");
0 commit comments