Add Veeam and NetBackup support to inventory and reporting

- Introduced Veeam and NetBackup version tracking in `Inventory.php` for backup validation.
- Enhanced backup report in `Backups.php` with improved SQL queries and support for short hostname normalization.
- Updated `navbar.html` and related navigation components for better usability and accessibility.
- Refactored ActiveDirectory scripts for better modularity and event handling.
- Added `AGENTS.md` and `modele.php` as templates for documentation and new page creation.
This commit is contained in:
e025532
2026-09-24 15:36:09 +02:00
parent c185d099d6
commit db223b805c
7 changed files with 847 additions and 127 deletions

View File

@@ -68,10 +68,12 @@
$UTDBES = end($versions);
$UTDFI = (Invoke_Infra("select max(Ver) as utd from X_cmdb_Product where Name = 'fi'"))[0]['utd'];
$UTDxs = (Invoke_Infra("select max(Ver) as utd from X_cmdb_Product where Name = 'xs'"))[0]['utd'];
$UTDveeam = (Invoke_Infra("select max(Ver) as utd from X_cmdb_Product where Name = 'veeam'"))[0]['utd'];
$UTDnetbackup = (Invoke_Infra("select max(Ver) as utd from X_cmdb_Product where Name = 'netbackup'"))[0]['utd'];
?>
<div class="container-fluid" id="content">
<div class="container-fluid" id="content" style="zoom:80%">
<div class="row flex-nowrap">
<div class="col-auto col-md-2 col-xl-2 px-sm-2 px-0 bg-dark vh-100 position-sticky top-0" style="-ms-flex: 0 0 230px;flex: 0 0 230px;">
<?php include $_SERVER['DOCUMENT_ROOT'] . "/navbar.html"; ?>
@@ -111,6 +113,8 @@
<th data-field="BES" data-sortable="true" data-visible="false">BES</th>
<th data-field="FI" data-sortable="true" data-visible="false">Fusion Inv.</th>
<th data-field="xs" data-sortable="true" data-visible="false">XenSam</th>
<th data-field="veeam" data-sortable="true" data-visible="true">Veeam</th>
<th data-field="netbackup" data-sortable="true" data-visible="true">Netbackup</th>
</tr>
</thead>
@@ -342,7 +346,46 @@
} else {
echo "<td></td>";
}
//Veeam
$s1s = $s['VeeamState'];
$s1v = $s['VeeamVersion'];
if ($s1s == "Y") {
if ($s1v == $UTDveeam) {
echo "<td class='table-success'>$s1v $s1s</td>";
} else {
echo "<td class='table-warning'><b>$s1v</b> $s1s</td>";
}
}elseif($s1s == "E"){
echo "<td class='table-secondary text-center'>Excluded</td>";
}elseif($s1s == "N"){
echo "<td class='table-primary text-center'>Nope :)</td>";
} else {
if ($s1v == "") {
echo "<td class='table-danger text-center'>MISSING</td>";
} else {
echo "<td class='table-danger'>$s1v <b>$s1s</b></td>";
}
}
//Netbackup
$s1s = $s['nbState'];
$s1v = $s['nbVersion'];
if ($s1s == "Y") {
if ($s1v == $UTDnetbackup) {
echo "<td class='table-success'>$s1v $s1s</td>";
} else {
echo "<td class='table-warning'><b>$s1v</b> $s1s</td>";
}
}elseif($s1s == "E"){
echo "<td class='table-secondary text-center'>Excluded</td>";
}elseif($s1s == "N"){
} else {
if ($s1v == "") {
echo "<td class='table-danger text-center'>MISSING</td>";
} else {
echo "<td class='table-danger'>$s1v <b>$s1s</b></td>";
}
}
echo "</tr>";
}