| | |
| | | |
| | | /* fetch the Data from the DB */ |
| | | $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'server_load' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); |
| | | |
| | | if(isset($record['data'])) { |
| | | $data = unserialize($record['data']); |
| | | |
| | | /* |
| | |
| | | <td>' . $data['load_15'] . '</td> |
| | | </tr> |
| | | </table>'; |
| | | } else { |
| | | $html = '<p>'.$app->lng("no_data_serverload_txt").'</p>'; |
| | | } |
| | | |
| | | return $html; |
| | | } |
| | | |
| | |
| | | |
| | | /* fetch the Data from the DB */ |
| | | $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'disk_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); |
| | | |
| | | if(isset($record['data'])) { |
| | | $data = unserialize($record['data']); |
| | | |
| | | /* |
| | |
| | | $html .= '</tr>'; |
| | | } |
| | | $html .= '</table>'; |
| | | } else { |
| | | $html = '<p>'.$app->lng("no_data_diskusage_txt").'</p>'; |
| | | } |
| | | |
| | | |
| | | return $html; |
| | | } |
| | |
| | | |
| | | /* fetch the Data from the DB */ |
| | | $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'mem_usage' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); |
| | | |
| | | if(isset($record['data'])) { |
| | | $data = unserialize($record['data']); |
| | | |
| | | /* |
| | |
| | | } |
| | | } |
| | | $html .= '</table>'; |
| | | } else { |
| | | $html = '<p>'.$app->lng("no_data_memusage_txt").'</p>'; |
| | | } |
| | | |
| | | return $html; |
| | | } |
| | | |
| | |
| | | |
| | | /* fetch the Data from the DB */ |
| | | $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'cpu_info' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); |
| | | |
| | | if(isset($record['data'])) { |
| | | $data = unserialize($record['data']); |
| | | |
| | | /* |
| | |
| | | } |
| | | } |
| | | $html .= '</table>'; |
| | | } else { |
| | | $html = '<p>'.$app->lng("no_data_cpuinfo_txt").'</p>'; |
| | | } |
| | | |
| | | return $html; |
| | | } |
| | |
| | | |
| | | /* fetch the Data from the DB */ |
| | | $record = $app->db->queryOneRecord("SELECT data, state FROM monitor_data WHERE type = 'services' and server_id = " . $_SESSION['monitor']['server_id'] . " order by created desc"); |
| | | |
| | | if(isset($record['data'])) { |
| | | $data = unserialize($record['data']); |
| | | |
| | | /* |
| | |
| | | |
| | | |
| | | $html .= '</table></div>'; |
| | | } else { |
| | | $html = '<p>'.$app->lng("no_data_services_txt").'</p>'; |
| | | } |
| | | |
| | | |
| | | return $html; |