diff --git a/scripts/pi-hole/js/messages.js b/scripts/pi-hole/js/messages.js index 1707d885..4002b9b4 100644 --- a/scripts/pi-hole/js/messages.js +++ b/scripts/pi-hole/js/messages.js @@ -91,6 +91,37 @@ function renderMessage(data, type, row) { case "DNSMASQ_WARN": return "Warning in dnsmasq core:
" + row.message + "
"; + case "LOAD": + return ( + "Long-term load (15min avg) larger than number of processors: " + + parseFloat(row.blob1).toFixed(1) + + " > " + + parseInt(row.blob2, 10) + + "
This may slow down DNS resolution and can cause bottlenecks." + ); + + case "SHMEM": + return ( + "RAM shortage (" + + utils.escapeHtml(row.message) + + ") ahead: " + + parseInt(row.blob1, 10) + + "% used
" +
+        utils.escapeHtml(row.blob2) +
+        "
" + ); + + case "DISK": + return ( + "Disk shortage (" + + utils.escapeHtml(row.message) + + ") ahead: " + + parseInt(row.blob1, 10) + + "% used
" +
+        utils.escapeHtml(row.blob2) +
+        "
" + ); + default: return "Unknown message type
" + JSON.stringify(row) + "
"; }