Skip to content

Commit c9d97bf

Browse files
author
vogelor
committed
The monitor now supports OpenVZ-Hosts and OpenVZ-VE's
1 parent b31e8a8 commit c9d97bf

File tree

9 files changed

+1177
-733
lines changed

9 files changed

+1177
-733
lines changed

interface/web/monitor/lib/lang/de.lng

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ $wb['Show Clamav-Log'] = 'Clamav-Protokoll anzeigen';
4040
$wb['Show ISPConfig-Log'] = 'ISPConfig-Protokoll anzeigen';
4141
$wb['Show RKHunter-Log'] = 'RKHunter-Protokoll anzeigen';
4242
$wb['Show Jobqueue'] = 'Jobwarteschlange anzeigen';
43+
$wb['Show OpenVz VE BeanCounter'] = 'OpenVz VE Beancounter anzeigen';
4344
$wb['Show ISPC Cron-Log'] = 'ISPC Cron-Protokoll anzeigen';
4445
$wb['no_data_updates_txt'] = 'Derzeit stehen keine Daten über Updates zur Verfügung. Bitte später erneut überprüfen.';
4546
$wb['no_data_raid_txt'] = 'Derzeit stehen keine Daten über RAID zur Verfügung. Bitte später erneut überprüfen.';
@@ -66,10 +67,10 @@ $wb['monitor_nomdadm_txt'] = 'mdadm ist auf ihrem Server nicht installiert oder
6667
$wb['monitor_norkhunter_txt'] = 'RKHunter ist nicht installiert, deshalb gibt es keine Protokolldatei';
6768
$wb['monitor_serverstate_server_txt'] = 'Server';
6869
$wb['monitor_serverstate_state_txt'] = 'Status';
69-
$wb['monitor_serverstate_unknown_txt'] = 'unbekannt';
70+
$wb['monitor_serverstate_unknown_txt'] = 'Unbekannt';
7071
$wb['monitor_serverstate_info_txt'] = 'Info';
7172
$wb['monitor_serverstate_warning_txt'] = 'Warnung';
72-
$wb['monitor_serverstate_critical_txt'] = 'kritisch';
73+
$wb['monitor_serverstate_critical_txt'] = 'Kritisch';
7374
$wb['monitor_serverstate_error_txt'] = 'Fehler';
7475
$wb['monitor_serverstate_moreinfo_txt'] = 'Mehr Informationen...';
7576
$wb['monitor_serverstate_more_txt'] = 'mehr...';
@@ -115,6 +116,11 @@ $wb['monitor_serverstate_syslogunknown_txt'] = 'System-Protokoll: ???';
115116
$wb['monitor_serverstate_updatesok_txt'] = 'Ihr System ist aktuell';
116117
$wb['monitor_serverstate_updatesneeded_txt'] = 'Eine oder mehrere Komponenten benötigen ein Update';
117118
$wb['monitor_serverstate_updatesunknown_txt'] = 'System-Update: ???';
119+
$wb['monitor_serverstate_beancounterok_txt'] = 'Die Datei Beancounter beinhaltet keine Fehler';
120+
$wb['monitor_serverstate_beancounterinfo_txt'] = 'Die Datei Beancounter beinhaltet wenige Fehler';
121+
$wb['monitor_serverstate_beancounterwarning_txt'] = 'Die Datei Beancounter beinhaltet einige Fehler';
122+
$wb['monitor_serverstate_beancountercritical_txt'] = 'Die Datei Beancounter beinhaltet viele Fehler';
123+
$wb['monitor_serverstate_beancountererror_txt'] = 'Die Datei Beancounter beinhaltet zu viele Fehler';
118124
$wb['monitor_services_online_txt'] = 'Online';
119125
$wb['monitor_services_offline_txt'] = 'Offline';
120126
$wb['monitor_services_web_txt'] = 'Web-Server:';
@@ -135,4 +141,6 @@ $wb['monitor_title_raidstate_txt'] = 'RAID-Status';
135141
$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter-Protokoll';
136142
$wb['monitor_updates_nosupport_txt'] = 'Ihre Distribution wird für die Überwachung nicht unterstützt';
137143
$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log';
144+
$wb['monitor_title_beancounter_txt'] = 'OpenVz VE BeanCounter';
145+
$wb['monitor_beancounter_nosupport_txt'] = 'Dieser Server ist kein OpenVz-VE und besitzt deshalb auch keine Beancounter Informationen.';
138146
?>

interface/web/monitor/lib/lang/en.lng

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ $wb['monitor_serverstate_syslogunknown_txt'] = 'System log: ???';
115115
$wb['monitor_serverstate_updatesok_txt'] = 'Your system is up to date.';
116116
$wb['monitor_serverstate_updatesneeded_txt'] = 'One or more components needs an update';
117117
$wb['monitor_serverstate_updatesunknown_txt'] = 'System Update: ???';
118+
$wb['monitor_serverstate_beancounterok_txt'] = 'The beancounter is ok';
119+
$wb['monitor_serverstate_beancounterinfo_txt'] = 'There are vew failure in the beancounter';
120+
$wb['monitor_serverstate_beancounterwarning_txt'] = 'There are some failure in the beancounter';
121+
$wb['monitor_serverstate_beancountercritical_txt'] = 'There are many failure in the beancounter';
122+
$wb['monitor_serverstate_beancountererror_txt'] = 'There are too much failure in the beancounter';
118123
$wb['monitor_services_online_txt'] = 'Online';
119124
$wb['monitor_services_offline_txt'] = 'Offline';
120125
$wb['monitor_services_web_txt'] = 'Web-Server:';
@@ -134,5 +139,7 @@ $wb['monitor_title_mailq_txt'] = 'Mail Queue';
134139
$wb['monitor_title_raidstate_txt'] = 'RAID Status';
135140
$wb['monitor_title_rkhunterlog_txt'] = 'RKHunter Log';
136141
$wb['monitor_title_fail2ban_txt'] = 'Fail2Ban Log';
142+
$wb['monitor_title_beancounter_txt'] = 'OpenVz VE BeanCounter';
137143
$wb['monitor_updates_nosupport_txt'] = 'Your distribution is not supported for this monitoring';
144+
$wb['monitor_beancounter_nosupport_txt'] = 'This server is not a OpenVz VE and has no beancounter information';
138145
?>

interface/web/monitor/lib/module.conf.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@
104104
'target' => 'content',
105105
'link' => 'monitor/show_data.php?type=services');
106106

107+
$items[] = array( 'title' => "Show OpenVz VE BeanCounter",
108+
'target' => 'content',
109+
'link' => 'monitor/show_data.php?type=openvz_beancounter');
107110

108111
$module["nav"][] = array( 'title' => 'Server State',
109112
'open' => 1,

interface/web/monitor/show_data.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@
8282
$title = $app->lng("Status of services").' ('. $monTransSrv .' : ' . $_SESSION['monitor']['server_name'] . ')';
8383
$description = '';
8484
break;
85+
case 'openvz_beancounter':
86+
$template = 'templates/show_data.htm';
87+
$output .= showOpenVzBeanCounter();
88+
$time = getDataTime('openvz_beancounter');
89+
$title = $app->lng("monitor_title_beancounter_txt") . ' (' . $monTransSrv . ' : ' . $_SESSION['monitor']['server_name'] . ')';
90+
$description = '';
91+
break;
8592
case 'system_update':
8693
$template = 'templates/show_data.htm';
8794
$output .= showSystemUpdate();

0 commit comments

Comments
 (0)