update hyper-v part

This commit is contained in:
e025532
2025-03-20 15:07:45 +01:00
parent a23577c290
commit c15a86d6a8
12 changed files with 1137 additions and 58 deletions

View File

@@ -78,7 +78,7 @@
foreach ($clusters as $cluster) {
echo "<div class='col-6'>";
$nbvm = Invoke_Infra("select count(*) as nbvm, sum(memory) as vmmem from cmdb_vms where owner ='".$cluster['node']."' and decomtime is null");
echo '<h3><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">'.$cluster['node']." - ".$nbvm[0]['nbvm']." VMs</span></h3><br>";
echo '<h3><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">'.$cluster['node']." - ".$nbvm[0]['nbvm']." VMs <small><small> <i class='bi bi-clock'></i> ".$cluster['ts']."</small></small></span></h3><br>";
#Memory
echo "<div class='row'>";
echo "<div class='col'>";
@@ -156,7 +156,7 @@
echo "<div class='col'>";
echo '<span class="badge rounded-pill bg-secondary text-light">'.$vm['Memory'].'GB / '.$vm['CPU'].' CPU</span> ';
if($vm['WWPNs'] != ""){
echo '<span class="badge rounded-pill bg-primary text-light">iSCSI</span> ';
echo '<span class="badge rounded-pill bg-primary text-light">LUN(s)</span> ';
}
#echo "</div>";