.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
<!-- Page Title -->
|
||||
<title>Web Infra Reports</title>
|
||||
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
|
||||
|
||||
<!-- JQuery -->
|
||||
<script src="/js/jquery-3.6.1.min.js"></script>
|
||||
@@ -106,8 +107,6 @@
|
||||
Inventory</th>
|
||||
<th data-field="SCCM" data-sortable="true">SCCM<br></th>
|
||||
<th data-field="SCCMlu" data-sortable="true" data-visible="false">SCCM Last Heartbeat</th>
|
||||
<th data-field="EPO" data-sortable="true">EPO</th>
|
||||
<th data-field="EPOlu" data-sortable="true" data-visible="false">EPO Last Update</th>
|
||||
<th data-field="Backup" data-sortable="true">Backup</th>
|
||||
<th data-field="NBUlu" data-sortable="true" data-visible="false">Last Backup</th>
|
||||
<th data-field="SCOM" data-sortable="true">SCOM</th>
|
||||
@@ -127,7 +126,6 @@
|
||||
$nSCCM = 0;
|
||||
$nGLPI = 0;
|
||||
$nFI = 0;
|
||||
$nEPO = 0;
|
||||
$nNBU = 0;
|
||||
$nDPM = 0;
|
||||
$nS1 = 0;
|
||||
@@ -232,28 +230,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// EPO
|
||||
if ($row['EPO'] == 'Y') {
|
||||
$date1 = date_create($row['EPOlu']);
|
||||
$diff = date_diff($date1, date_create(date("Y-m-d")));
|
||||
if ($diff->format("%R%a") > 7) {
|
||||
echo "<td class='text-white' style='background: linear-gradient(90deg, rgba(25,135,84,1) 50%, rgba(220,53,69,1) 100%);'>OK</td>";
|
||||
echo "<td class='bg-danger text-white'>" . $row['EPOlu'] . " (" . $diff->format("%R%a") . " days)</td>";
|
||||
} else {
|
||||
echo "<td class='bg-success text-white'>OK</td>";
|
||||
echo "<td class='bg-success text-white'>" . $row['EPOlu'] . "</td>";
|
||||
$nEPO++;
|
||||
}
|
||||
} else {
|
||||
if (isset($row['EPO'])) {
|
||||
echo "<td class='bg-secondary'><small>" . $row['EPO'] . "</small></td>";
|
||||
echo "<td class='bg-secondary text-secondary'> </td>";
|
||||
$nEPO++;
|
||||
} else {
|
||||
echo "<td class='bg-warning text-warning'>Missing</td>";
|
||||
echo "<td class='bg-warning text-warning'> </td>";
|
||||
}
|
||||
}
|
||||
|
||||
// BACKUP
|
||||
if ($row['NBU'] == 'Y') {
|
||||
@@ -306,8 +282,8 @@
|
||||
}
|
||||
|
||||
// zabbix
|
||||
if ($row['zabbix'] == 'Y') {
|
||||
echo "<td class='bg-success text-white'>OK</td>";
|
||||
if ($row['zabbix'] == 'Y' || strpos($row['zabbix'], '.') !== false ) {
|
||||
echo "<td class='bg-success text-white'>".str_replace('Y','OK',$row['zabbix'])."</td>";
|
||||
} else {
|
||||
if (isset($row['zabbix'])) {
|
||||
echo "<td class='bg-secondary'><small>" . $row['zabbix'] . "</small></td>";
|
||||
@@ -398,16 +374,6 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col"> <!-- CARTE EPO -->
|
||||
<div class="card border-secondary mb-3">
|
||||
<div class="card-header text-dark"><b>EPO</b></div>
|
||||
<a href="/crossover/GlobalCrossover.php?filter=EPO">
|
||||
<div class="card-body">
|
||||
<h2><span class="badge text-bg-secondary font-weight-bold" id="KPIEPO"></span></h2>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col"> <!-- CARTE Backup (NBU + DPM) -->
|
||||
<div class="card border-secondary mb-3">
|
||||
<div class="card-header text-dark"><b>Backup</b></div>
|
||||
|
||||
Reference in New Issue
Block a user