system_update warning remains after disabling the Check for Linux updates feature

When you disable 'Server Config' -> 'Check for Linux updates' any warning state will remain on the 'Server State' overview.

While it would be nice to directly have the warning disappear, it's probably easier and good enough to let it disappear after a day.

What about skipping monitor_data records older then a day? The only older records I could find were from this particular update check.

diff --git a/interface/web/monitor/show_sys_state.php b/interface/web/monitor/show_sys_state.php
index 8f97723..81bf78f 100644
--- a/interface/web/monitor/show_sys_state.php
+++ b/interface/web/monitor/show_sys_state.php
@@ -191,7 +191,7 @@ function _getServerState($serverId, $serverName) {
        /*
      * Get all monitoring-data from the server and process then
        */
-       $records = $app->db->queryAllRecords("SELECT DISTINCT type, data FROM monitor_data WHERE server_id = ?", $serverId);
+       $records = $app->db->queryAllRecords("SELECT DISTINCT type, data FROM monitor_data WHERE server_id = ? AND `created` > UNIX_TIMESTAMP() - 86400", $serverId);
        $osData = null;
        $veInfo = null;
        $ispcData = null;
@@ -351,7 +351,7 @@ function _processDbState($type, $serverId, $serverState, $messages) {
     * state
        */
        // get the State from the DB
-       $record = $app->db->queryOneRecord("SELECT state FROM monitor_data WHERE type = ? and server_id = ? order by created desc", $type, $serverId);
+       $record = $app->db->queryOneRecord("SELECT state FROM monitor_data WHERE type = ? and server_id = ? AND `created` > UNIX_TIMESTAMP() - 86400 order by created desc", $type, $serverId);
 
        // change the new state to the highest state
        /*
Assignee Loading
Time tracking Loading