From 954632de10f6f6ecaa60689210b4a1d273d0f614 Mon Sep 17 00:00:00 2001 From: Rosiak Date: Fri, 22 May 2015 22:26:31 +0200 Subject: [PATCH] Ubiquiti EdgeOS - Fix missing CPU load graphs - No graphs were generated for the CPU load, now fixed. Tested on EdgeRouter Lite 3-Port --- includes/discovery/processors/hrdevice.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/discovery/processors/hrdevice.inc.php b/includes/discovery/processors/hrdevice.inc.php index ea82c6a64..69eec7ce1 100644 --- a/includes/discovery/processors/hrdevice.inc.php +++ b/includes/discovery/processors/hrdevice.inc.php @@ -29,6 +29,8 @@ if (is_array($hrDevice_array)) if ($device['os'] == "routeros" && !isset($entry['hrDeviceDescr'])) { $descr = "Processor"; } // Workaround to set fake description for Engenius who don't populate hrDeviceDescr if ($device['os'] == "engenius" && empty($entry['hrDeviceDescr'])) { $descr = "Processor"; } + // Workaround to set fake description for Ubiquiti EdgeOS who don't populate hrDeviceDescr + if ($device['os'] == "edgeos" && empty($entry['hrDeviceDescr'])) { $descr = "Processor"; } $descr = str_replace("CPU ", "", $descr); $descr = str_replace("(TM)", "", $descr);