Add VIO FC Status monitoring page and enhance server inventory filtering
- Introduced `Storage/VIO.php` for monitoring VIO Fibre Channel status with client balancing checks and table sorting. - Updated `/include/en.php` and `/include/fr.php` to include new translations for ServiceNow and VIO-related navigation elements. - Improved SQL query and filtering logic in `/X/Inventory.php` to exclude VIO entries and add XenSam version data. - Enhanced `/reports/heartbeat.php` with a new mechanism for handling server heartbeat status, allowing better granularity and readability.
This commit is contained in:
@@ -49,11 +49,17 @@
|
||||
if(is_array($Qw)){
|
||||
$OSType = "Windows"; $OSName = $Qw[0]['os']; $OSKernel = "";
|
||||
}else{
|
||||
if($Qx[0]['Type'] == "AIX"){
|
||||
$OSType = "AIX"; $OSName = "AIX ".$Qx[0]['OSVersion'] ; $OSKernel = "";
|
||||
}else{
|
||||
$OSType = "Linux"; $OSName = $Qx[0]['Type']." ".$Qx[0]['OSVersion'] ; $OSKernel = $Qx[0]['Kernel'];
|
||||
}
|
||||
if(is_array($Qx) ){
|
||||
if ($Qx[0]['Type'] == "AIX") {
|
||||
$OSType = "AIX";
|
||||
$OSName = "AIX " . $Qx[0]['OSVersion'];
|
||||
$OSKernel = "";
|
||||
} else {
|
||||
$OSType = "Linux";
|
||||
$OSName = $Qx[0]['Type'] . " " . $Qx[0]['OSVersion'];
|
||||
$OSKernel = $Qx[0]['Kernel'];
|
||||
}
|
||||
}else{$OSType='';}
|
||||
}
|
||||
echo "<div id='type' data-value='".strtolower($OSType)."' hidden></div>";
|
||||
echo "<div id='computer' data-value='$server' hidden></div>";
|
||||
@@ -62,13 +68,14 @@
|
||||
if($OSType == "Windows"){
|
||||
$memory = $Qw[0]['memory']." GB";$cpu = $Qw[0]['cpu'];
|
||||
}else{
|
||||
if(is_array($Qx) ){
|
||||
$cpu = $Qx[0]['CPU'] ;
|
||||
if($OSType == "AIX"){
|
||||
$memory = round(str_replace(" Mo","",$Qx[0]['Memory'])/1024,2)." GB";
|
||||
}else{
|
||||
$memory = $Qvm[0]['Memory'] ?? $Qx[0]['Memory'] ;
|
||||
}
|
||||
}
|
||||
}}
|
||||
echo "<div id='type' data-value='".strtolower($OSType)."' hidden></div>";
|
||||
echo "<div id='computer' data-value='$server' hidden></div>";
|
||||
?>
|
||||
@@ -254,9 +261,12 @@
|
||||
}
|
||||
}
|
||||
if($OSType == "Linux"){
|
||||
$date = Invoke_Infra("select Next from rollup_linux_calendar where Server='$server'")[0]['Next'];
|
||||
if($date != ""){
|
||||
echo " <span class='badge rounded-pill bg-secondary text-light fs-5'>$w_nextRollup : $date </span>";
|
||||
$dr = Invoke_Infra("select Next from rollup_linux_calendar where Server='$server'");
|
||||
if(is_array($dr)){
|
||||
$date = $dr[0]['Next'];
|
||||
if($date != ""){
|
||||
echo " <span class='badge rounded-pill bg-secondary text-light fs-5'>$w_nextRollup : $date </span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user