| | |
| | | $time = $app->tools_monitor->getDataTime('server_load'); |
| | | $title = $app->lng("Server Load").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | case 'disk_usage': |
| | | $template = 'templates/show_data.htm'; |
| | |
| | | $time = $app->tools_monitor->getDataTime('openvz_beancounter'); |
| | | $title = $app->lng("monitor_title_beancounter_txt") . ' (' . $monTransSrv . ' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | case 'system_update': |
| | | $template = 'templates/show_data.htm'; |
| | |
| | | $time = $app->tools_monitor->getDataTime('system_update'); |
| | | $title = $app->lng("monitor_title_updatestate_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | case 'mailq': |
| | | $template = 'templates/show_data.htm'; |
| | |
| | | $time = $app->tools_monitor->getDataTime('mailq'); |
| | | $title = $app->lng("monitor_title_mailq_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | case 'raid_state': |
| | | $template = 'templates/show_data.htm'; |
| | |
| | | $time = $app->tools_monitor->getDataTime('raid_state'); |
| | | $title = $app->lng("monitor_title_raidstate_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | case 'rkhunter': |
| | | $template = 'templates/show_data.htm'; |
| | |
| | | $time = $app->tools_monitor->getDataTime('rkhunter'); |
| | | $title = $app->lng("monitor_title_rkhunterlog_txt"). ' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | case 'fail2ban': |
| | | $template = 'templates/show_data.htm'; |
| | |
| | | $time = $app->tools_monitor->getDataTime('log_fail2ban'); |
| | | $title = $app->lng("monitor_title_fail2ban_txt") . ' (' . $monTransSrv . ' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | case 'mongodb': |
| | | $template = 'templates/show_data.htm'; |
| | |
| | | $time = $app->tools_monitor->getDataTime('iptables_rules'); |
| | | $title = $app->lng("monitor_title_iptables_txt") . ' (' . $monTransSrv . ' : ' . $_SESSION['monitor']['server_name'] . ')'; |
| | | $description = ''; |
| | | $add_padding = true; |
| | | break; |
| | | default: |
| | | $template = ''; |
| | | break; |
| | | } |
| | | |
| | | if($add_padding == true) { |
| | | $output = '<div style="padding:20px;">'.$output.'</div>'; |
| | | } |
| | | |
| | | |
| | | // Loading the template |
| | | $app->uses('tpl'); |