mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
TPLINK - Refactor HW discovery (#12105)
* refactor tplink hw and version * tests
This commit is contained in:
4
includes/definitions/discovery/tplink.yaml
Normal file
4
includes/definitions/discovery/tplink.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
modules:
|
||||
os:
|
||||
hardware: RMON-MIB::rmon.19.3.0
|
||||
version: RMON-MIB::rmon.19.2.0
|
@@ -1,4 +0,0 @@
|
||||
<?php
|
||||
|
||||
$version = trim(snmp_get($device, 'RMON-MIB::rmon.19.2.0', '-Ovq'), '"');
|
||||
$hardware = trim(snmp_get($device, 'RMON-MIB::rmon.19.3.0', '-Ovq'), '"');
|
Reference in New Issue
Block a user