File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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
4043echo "<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 . " " . $ kvarray [$ alert ] . "</div><br> " ;
64+ }
65+ }
66+ }
67+
5768echo "<b> $ descr</b> (ID: $ id)<p> " ;
5869
5970echo "<table width=100%><tr><td width=50%>Hostname: " . @$ kvarray ['System_Hostname ' ] . "<br> <br>OS: " . @$ kvarray ['System_OSProductName ' ] . "<br>Build: $ last_winver " ;
You can’t perform that action at this time.
0 commit comments