$record=$app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'system_update' and server_id = ".$_SESSION['monitor']['server_id']." order by created desc");
* First, we have to detect, if there is any monitoring-data.
* If not (because the destribution is not supported) show this.
*/
if($record['state']=='no_state'){
$html='<p>'."Your distribution is not supported for this monitoring".'</p>';
$html.="Your distribution is not supported for this monitoring";
}
else{
$data=unserialize($record['data']);
$html=nl2br($data['output']);
$html.=nl2br($data['output']);
}
$html.='</div></div>';
}else{
$html='<p>'."No Update-Data available".'</p>';
}
...
...
@@ -303,17 +335,23 @@ function showRaidState()
$record=$app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'raid_state' and server_id = ".$_SESSION['monitor']['server_id']." order by created desc");