mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated harmony OS poller to use multi get (#9525)
This commit is contained in:
committed by
Tony Murray
parent
0b3f1daed9
commit
c7152294ad
@@ -9,5 +9,6 @@
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
|
||||
$version = trim(snmp_get($device, ".1.3.6.1.4.1.7262.4.5.2.4.2.1.1.3.1", "-Ovq"), '" ');
|
||||
$serial = trim(snmp_get($device, ".1.3.6.1.4.1.7262.4.5.2.4.1.3.0", "-Ovq"), '" ');
|
||||
$harmony_data = snmp_get_multi_oid($device, ['.1.3.6.1.4.1.7262.4.5.2.4.2.1.1.3.1', '.1.3.6.1.4.1.7262.4.5.2.4.1.3.0']);
|
||||
$version = $harmony_data['.1.3.6.1.4.1.7262.4.5.2.4.2.1.1.3.1'];
|
||||
$serial = $harmony_data['.1.3.6.1.4.1.7262.4.5.2.4.1.3.0'];
|
||||
|
||||
Reference in New Issue
Block a user