Skip to content

Commit 82927e7

Browse files
author
vogelor
committed
The Monitor now also shows the ISPConfig Version
1 parent 1ee9f42 commit 82927e7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

interface/web/monitor/show_sys_state.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,18 @@ function _getServerState($serverId, $serverName) {
193193
$records = $app->db->queryAllRecords("SELECT DISTINCT type, data FROM monitor_data WHERE server_id = " . $serverId);
194194
$osData = null;
195195
$veInfo = null;
196+
$ispcData = null;
196197
foreach($records as $record) {
197198
/* get the state from the db-data */
198199
_processDbState($record['type'], $serverId, &$serverState, &$messages);
199200
/* if we have the os-info, get it */
200201
if ($record['type'] == 'os_info') {
201202
$osData = unserialize($record['data']);
202203
}
204+
/* if we have the ISPConfig-info, get it */
205+
if ($record['type'] == 'ispc_info') {
206+
$ispcData = unserialize($record['data']);
207+
}
203208
/* if we have the ve-info, get it */
204209
if ($record['type'] == 'openvz_veinfo') {
205210
$veInfo = unserialize($record['data']);
@@ -221,6 +226,9 @@ function _getServerState($serverId, $serverName) {
221226
if ($osData != null) {
222227
$html_ve .= $osData['name'] . ' ' . $osData['version'] . '<br>';
223228
}
229+
if ($ispcData != null) {
230+
$html_ve .= $ispcData['name'] . ' ' . $ispcData['version'] . '<br>';
231+
}
224232
$html_ve .= $app->lng("monitor_serverstate_state_txt") . ': ' . $serverState . '<br>';
225233

226234
/*
@@ -233,6 +241,9 @@ function _getServerState($serverId, $serverName) {
233241
if ($osData != null) {
234242
$html_server .= ' (' . $osData['name'] . ' ' . $osData['version'] . ')';
235243
}
244+
if ($ispcData != null) {
245+
$html_server .= $ispcData['name'] . ' ' . $ispcData['version'] . '<br>';
246+
}
236247

237248
$html_server .= '<br />';
238249
$html_server .= $app->lng("monitor_serverstate_state_txt") . ': ' . $serverState . ' (';

0 commit comments

Comments
 (0)