Skip to content

Commit 1caa984

Browse files
committed
Display alert condition bars
1 parent b77bf8d commit 1caa984

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

modules/sync/acpm_nodedetail.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ function formatBytes($bytes, $precision = 2) {
3535
if (str_starts_with($row['nkey'],"Security_")) {
3636
$fixarray[] = $row['nkey'];
3737
}
38+
if (str_starts_with($row['nkey'],"Alert_")) {
39+
$alertarray[] = $row['nkey'];
40+
}
3841
}
3942

4043
echo "<div align=left width=100% style=\"display: flex;\">
@@ -54,6 +57,14 @@ function formatBytes($bytes, $precision = 2) {
5457
5558
</span></div>";
5659

60+
if (!empty($alertarray)) {
61+
foreach ($alertarray as $alert) {
62+
if ($kvarray[$alert] != "cleared") {
63+
echo "<div align=left width=100% style=\"background-color: red;\"><b>" . $alert . "&nbsp;" . $kvarray[$alert] . "</div><br>";
64+
}
65+
}
66+
}
67+
5768
echo "<b>$descr</b> (ID: $id)<p>";
5869

5970
echo "<table width=100%><tr><td width=50%>Hostname: " . @$kvarray['System_Hostname'] . "<br> <br>OS: " . @$kvarray['System_OSProductName'] . "<br>Build: $last_winver";

0 commit comments

Comments
 (0)