| | |
| | | case 'server_load': |
| | | $template = 'templates/show_data.htm'; |
| | | $output .= showServerLoad(); |
| | | $title = 'Server Load (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $title = $app->lng("Server Load").' (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | break; |
| | | case 'disk_usage': |
| | | $template = 'templates/show_data.htm'; |
| | | $output .= showDiskUsage(); |
| | | $title = 'Disk usage (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $title = $app->lng("Disk usage").' (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | break; |
| | | case 'mem_usage': |
| | | $template = 'templates/show_data.htm'; |
| | | $output .= showMemUsage(); |
| | | $title = 'Memory usage (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $title = $app->lng("Memory usage").' (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | break; |
| | | case 'cpu_info': |
| | | $template = 'templates/show_data.htm'; |
| | | $output .= showCpuInfo(); |
| | | $title = 'CPU info (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $title = $app->lng("CPU info").' (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | break; |
| | | case 'services': |
| | | $template = 'templates/show_data.htm'; |
| | | $output .= showServices(); |
| | | $title = 'Status of services (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $title = $app->lng("Status of services").' (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | break; |
| | | case 'overview': |
| | |
| | | $output .= showServerLoad(); |
| | | $output .= ' '. showDiskUsage(); |
| | | $output .= ' '.showServices(); |
| | | $title = 'System Monitor (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $title = $app->lng("System Monitor").' (Server: ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | break; |
| | | default: |