From 1a240f0c0158a0830543b56f6952f794c7ebc3a6 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 24 Oct 2018 15:05:47 -0500 Subject: [PATCH 1/2] Don't overwrite processor warn percentage --- LibreNMS/Device/Processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/Device/Processor.php b/LibreNMS/Device/Processor.php index 05b6149660..e6ea392f91 100644 --- a/LibreNMS/Device/Processor.php +++ b/LibreNMS/Device/Processor.php @@ -155,7 +155,7 @@ class Processor extends Model implements DiscoveryModule, PollerModule, Discover self::sync( $os->getDeviceId(), $processors, - array('device_id', 'processor_index', 'processor_type'), + array('device_id', 'processor_index', 'processor_type', 'processor_perc_warn'), array('processor_usage') ); } From 4a49de1d3585c23f938eea4938c236477bf9dea9 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 24 Oct 2018 15:15:58 -0500 Subject: [PATCH 2/2] Put it in the right place. --- LibreNMS/Device/Processor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibreNMS/Device/Processor.php b/LibreNMS/Device/Processor.php index e6ea392f91..36ef423400 100644 --- a/LibreNMS/Device/Processor.php +++ b/LibreNMS/Device/Processor.php @@ -155,8 +155,8 @@ class Processor extends Model implements DiscoveryModule, PollerModule, Discover self::sync( $os->getDeviceId(), $processors, - array('device_id', 'processor_index', 'processor_type', 'processor_perc_warn'), - array('processor_usage') + ['device_id', 'processor_index', 'processor_type'], + ['processor_usage', 'processor_perc_warn'] ); }