From fb4c27e329659f7ebfb72855297549ac01a54f02 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Tue, 02 Dec 2008 03:12:36 -0500
Subject: [PATCH] The monitor now shows the date of the data (to determine how old they are) Fixed some bugs and improved the RAID - monitor Fixed the user count in the monitor The monitor now monitors the rkhunter - log too The monitor now deletes the old data AFTER writing the new one, so there are always data in the db
---
interface/web/monitor/show_sys_state.php | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/interface/web/monitor/show_sys_state.php b/interface/web/monitor/show_sys_state.php
index 1cb7652..b99ccf6 100644
--- a/interface/web/monitor/show_sys_state.php
+++ b/interface/web/monitor/show_sys_state.php
@@ -385,7 +385,20 @@
/* this type has no state */
}
if ($type == 'log_freshclam'){
- /* this type has no state */
+ switch ($record['state']) {
+ case 'ok':
+ $messages['ok'][] = 'Your Virus-protection is ok ' .
+ "<a href='#' onclick='loadContent(\"monitor/show_log.php?log=log_freshclam\");'>[more...]</a>";
+ break;
+ case 'warning':
+ $messages['warning'][] = 'Your Virus-protection is OUTDATED! ' .
+ "<a href='#' onclick='loadContent(\"monitor/show_log.php?log=log_freshclam\");'>[more...]</a>";
+ break;
+ default:
+ $messages['unknown'][] = 'Freshclam: ???! ' .
+ "<a href='#' onclick='loadContent(\"monitor/show_log.php?log=log_freshclam\");'>[more...]</a>";
+ break;
+ }
}
if ($type == 'log_ispconfig'){
/* this type has no state */
@@ -402,6 +415,9 @@
if ($type == 'log_messages'){
/* this type has no state */
}
+ if ($type == 'rkhunter'){
+ /* this type has no state */
+ }
}
/*
--
Gitblit v1.9.1