Add "Host" column to the inventory table in /X/Inventory.php and introduce VM issue metrics (Unclustered, Wrong Owner) in Hyper-V clusters report with refined query logic.

This commit is contained in:
2025-09-03 09:48:55 +02:00
parent e0d2dc00c1
commit 2c279320ce
2 changed files with 63 additions and 35 deletions

View File

@@ -56,6 +56,7 @@
<thead> <!-- Header -->
<tr>
<th data-field="Name" data-sortable="true">Name</th>
<th data-field="Host" data-sortable="true">Host</th>
<th data-field="OS" data-sortable="true">OS Type</th>
<th data-field="distrib" data-sortable="true">Distrib</th>
<th data-field="Last Boot" data-sortable="true">Last reboot</th>
@@ -77,6 +78,8 @@
$name = $s['hostname'];
echo "<td><a href='/inventory/server-detail.php?s=".$name."' target='_blank'>$name</a></td>";
//Host
echo "<td>".$s['Owner']."</td>";
//OS Type
$typ = match ($s['type'] ?? null) {
'AIX' => 'AIX',