mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add support for TRENDnet switch (#11007)
* Add support for TRENDnet switch, TEG-S80ES in particular * Add trendnet.snmprec * Add test data (JSON) * Remove mib comment from yaml * Update copyright info * Use sysDescr value for Hardware
This commit is contained in:
BIN
html/images/os/trendnet.png
Executable file
BIN
html/images/os/trendnet.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
10
includes/definitions/trendnet.yaml
Normal file
10
includes/definitions/trendnet.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
os: trendnet
|
||||
text: 'TRENDnet Switch'
|
||||
type: network
|
||||
icon: trendnet
|
||||
nobulk: true
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.28866.2.49
|
27
includes/polling/os/trendnet.inc.php
Normal file
27
includes/polling/os/trendnet.inc.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* TRENDnet.inc.php
|
||||
*
|
||||
* LibreNMS os polling module for TRENDnet
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2020 Russell Morris
|
||||
* @author Russell Morris <rmorris@rkmorris.us>
|
||||
*/
|
||||
|
||||
//$hardware = snmp_get($device, 'sysDescr.0', '-Osqnv');
|
||||
$hardware = $device['sysDescr'];
|
1730
tests/data/trendnet.json
Normal file
1730
tests/data/trendnet.json
Normal file
File diff suppressed because it is too large
Load Diff
210
tests/snmpsim/trendnet.snmprec
Normal file
210
tests/snmpsim/trendnet.snmprec
Normal file
@@ -0,0 +1,210 @@
|
||||
1.3.6.1.2.1.1.1.0|4|TEG-S80ES
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.28866.2.49
|
||||
1.3.6.1.2.1.1.3.0|67|17368500
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.2.1.2.2.1.1.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.1.2|2|2
|
||||
1.3.6.1.2.1.2.2.1.1.3|2|3
|
||||
1.3.6.1.2.1.2.2.1.1.4|2|4
|
||||
1.3.6.1.2.1.2.2.1.1.5|2|5
|
||||
1.3.6.1.2.1.2.2.1.1.6|2|6
|
||||
1.3.6.1.2.1.2.2.1.1.7|2|7
|
||||
1.3.6.1.2.1.2.2.1.1.8|2|8
|
||||
1.3.6.1.2.1.2.2.1.2.1|4|port1
|
||||
1.3.6.1.2.1.2.2.1.2.2|4|port2
|
||||
1.3.6.1.2.1.2.2.1.2.3|4|port3
|
||||
1.3.6.1.2.1.2.2.1.2.4|4|port4
|
||||
1.3.6.1.2.1.2.2.1.2.5|4|port5
|
||||
1.3.6.1.2.1.2.2.1.2.6|4|port6
|
||||
1.3.6.1.2.1.2.2.1.2.7|4|port7
|
||||
1.3.6.1.2.1.2.2.1.2.8|4|port8
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.2|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.3|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.4|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.5|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.6|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.7|2|6
|
||||
1.3.6.1.2.1.2.2.1.3.8|2|6
|
||||
1.3.6.1.2.1.2.2.1.4.1|2|1566
|
||||
1.3.6.1.2.1.2.2.1.4.2|2|1566
|
||||
1.3.6.1.2.1.2.2.1.4.3|2|1566
|
||||
1.3.6.1.2.1.2.2.1.4.4|2|1566
|
||||
1.3.6.1.2.1.2.2.1.4.5|2|1566
|
||||
1.3.6.1.2.1.2.2.1.4.6|2|1566
|
||||
1.3.6.1.2.1.2.2.1.4.7|2|1566
|
||||
1.3.6.1.2.1.2.2.1.4.8|2|1566
|
||||
1.3.6.1.2.1.2.2.1.5.1|66|0
|
||||
1.3.6.1.2.1.2.2.1.5.2|66|0
|
||||
1.3.6.1.2.1.2.2.1.5.3|66|0
|
||||
1.3.6.1.2.1.2.2.1.5.4|66|0
|
||||
1.3.6.1.2.1.2.2.1.5.5|66|0
|
||||
1.3.6.1.2.1.2.2.1.5.6|66|0
|
||||
1.3.6.1.2.1.2.2.1.5.7|66|0
|
||||
1.3.6.1.2.1.2.2.1.5.8|66|1000000000
|
||||
1.3.6.1.2.1.2.2.1.6.1|4x|D8EB97961794
|
||||
1.3.6.1.2.1.2.2.1.6.2|4x|D8EB97961795
|
||||
1.3.6.1.2.1.2.2.1.6.3|4x|D8EB97961796
|
||||
1.3.6.1.2.1.2.2.1.6.4|4x|D8EB97961797
|
||||
1.3.6.1.2.1.2.2.1.6.5|4x|D8EB97961798
|
||||
1.3.6.1.2.1.2.2.1.6.6|4x|D8EB97961799
|
||||
1.3.6.1.2.1.2.2.1.6.7|4x|D8EB9796179A
|
||||
1.3.6.1.2.1.2.2.1.6.8|4x|D8EB9796179B
|
||||
1.3.6.1.2.1.2.2.1.7.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.2|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.3|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.4|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.5|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.6|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.7|2|1
|
||||
1.3.6.1.2.1.2.2.1.7.8|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.1|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.2|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.3|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.4|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.5|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.6|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.7|2|2
|
||||
1.3.6.1.2.1.2.2.1.8.8|2|1
|
||||
1.3.6.1.2.1.2.2.1.9.1|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.2|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.3|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.4|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.5|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.6|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.7|67|0
|
||||
1.3.6.1.2.1.2.2.1.9.8|67|1700
|
||||
1.3.6.1.2.1.2.2.1.10.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.10.8|65|1984961066
|
||||
1.3.6.1.2.1.2.2.1.11.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.11.8|65|9328590
|
||||
1.3.6.1.2.1.2.2.1.12.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.12.8|65|1639533
|
||||
1.3.6.1.2.1.2.2.1.13.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.13.8|65|10787911
|
||||
1.3.6.1.2.1.2.2.1.14.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.8|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.15.8|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.16.8|65|13094630
|
||||
1.3.6.1.2.1.2.2.1.17.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.17.8|65|135403
|
||||
1.3.6.1.2.1.2.2.1.18.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.18.8|65|3633
|
||||
1.3.6.1.2.1.2.2.1.19.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.8|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.2|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.3|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.4|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.5|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.6|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.7|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.8|65|0
|
||||
1.3.6.1.2.1.4.3.0|65|134574
|
||||
1.3.6.1.2.1.4.7.0|65|0
|
||||
1.3.6.1.2.1.4.9.0|65|134575
|
||||
1.3.6.1.2.1.4.10.0|65|134569
|
||||
1.3.6.1.2.1.5.1.0|65|1797
|
||||
1.3.6.1.2.1.5.8.0|65|1796
|
||||
1.3.6.1.2.1.5.9.0|65|0
|
||||
1.3.6.1.2.1.5.14.0|65|1796
|
||||
1.3.6.1.2.1.5.15.0|65|0
|
||||
1.3.6.1.2.1.6.10.0|65|0
|
||||
1.3.6.1.2.1.6.11.0|65|0
|
||||
1.3.6.1.2.1.7.1.0|65|132823
|
||||
1.3.6.1.2.1.7.2.0|65|0
|
||||
1.3.6.1.2.1.7.4.0|65|132821
|
||||
1.3.6.1.2.1.11.1.0|65|132734
|
||||
1.3.6.1.2.1.11.2.0|65|132734
|
||||
1.3.6.1.2.1.11.3.0|65|0
|
||||
1.3.6.1.2.1.11.4.0|65|0
|
||||
1.3.6.1.2.1.11.5.0|65|0
|
||||
1.3.6.1.2.1.11.6.0|65|0
|
||||
1.3.6.1.2.1.11.8.0|65|0
|
||||
1.3.6.1.2.1.11.9.0|65|7660
|
||||
1.3.6.1.2.1.11.10.0|65|0
|
||||
1.3.6.1.2.1.11.12.0|65|0
|
||||
1.3.6.1.2.1.11.15.0|65|8155
|
||||
1.3.6.1.2.1.11.16.0|65|124590
|
||||
1.3.6.1.2.1.11.17.0|65|0
|
||||
1.3.6.1.2.1.11.29.0|65|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.2|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.3|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.4|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.5|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.6|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.7|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.8|70|10574847105
|
||||
1.3.6.1.2.1.31.1.1.1.10.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.2|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.3|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.4|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.5|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.6|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.7|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.8|70|13081329
|
Reference in New Issue
Block a user