mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Cambium ePMP CPU reporting fix (#7182)
* Commit merge to branch for Cambium CPU fix (#1) * Remove division by 10 Removes unnecessary division by 10 from poller file; this is handled by processor_precision in the main include. * Correct processor_precision Adjusted processor precision divider from 100 to 10 (as sysCPUUsage.0 reports from 0-1000 as 0-100.0%) * Delete cambium-cpu.inc.php With the change to the discovery file (processor_precision set to the correct value of 10) this file is not required.
This commit is contained in:
committed by
Neil Lathwood
parent
f6fe6f748b
commit
0ba372221f
@@ -21,7 +21,7 @@ if ($device['os'] == 'cambium') {
|
||||
'0',
|
||||
'cambium-cpu',
|
||||
$descr,
|
||||
'100',
|
||||
'10',
|
||||
$usage,
|
||||
null,
|
||||
null
|
||||
|
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
echo 'Cambium CPU Usage';
|
||||
|
||||
$usage = str_replace('"', "", snmp_get($device, 'CAMBIUM-PMP80211-MIB::sysCPUUsage.0', '-OvQ'));
|
||||
|
||||
if (is_numeric($usage)) {
|
||||
$proc = ($usage / 10);
|
||||
}
|
Reference in New Issue
Block a user