tbrehm
2012-02-22 18caff9a2452bf687157de2efba85e115a053180
Fixed: FS#2054 - Check monitor system state details
1 files modified
11 ■■■■ changed files
interface/web/monitor/show_sys_state.php 11 ●●●● patch | view | raw | blame | history
interface/web/monitor/show_sys_state.php
@@ -196,7 +196,10 @@
    $ispcData = null;
    foreach($records as $record) {
        /* get the state from the db-data */
        _processDbState($record['type'], $serverId, $serverState, $messages);
        $tmp = _processDbState($record['type'], $serverId, $serverState, $messages);
        $serverState = $tmp['serverState'];
        $messages = $tmp['messages'];
        /* if we have the os-info, get it */
        if ($record['type'] == 'os_info') {
            $osData = unserialize($record['data']);
@@ -299,8 +302,8 @@
/*
* gets the state from the db and process it
*/
function _processDbState($type, $serverId, $serverState, $messages) {
    global $app;
function _processDbState($type, $serverId) {
    global $app, $serverState, $messages;
    /*
    * Always the NEWEST record of each monitoring is responsible for the
@@ -574,6 +577,8 @@
    if ($type == 'rkhunter') {
        /* this type has no state */
    }
    return array('serverState' => $serverState,'messages' => $messages);
}
/*