mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
This commit is contained in:
BIN
html/images/os/tplink.png
Normal file
BIN
html/images/os/tplink.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
@ -776,6 +776,14 @@ $config['os'][$os]['text'] = 'D-Link Access Point';
|
||||
$config['os'][$os]['type'] = 'wireless';
|
||||
$config['os'][$os]['icon'] = 'dlink';
|
||||
|
||||
// TP-Link
|
||||
$os = 'tplink';
|
||||
$config['os'][$os]['text'] = 'TP-Link Switch';
|
||||
$config['os'][$os]['type'] = 'network';
|
||||
$config['os'][$os]['icon'] = 'tplink';
|
||||
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
|
||||
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
|
||||
|
||||
$os = 'axiscam';
|
||||
$config['os'][$os]['text'] = 'AXIS Network Camera';
|
||||
$config['os'][$os]['icon'] = 'axis';
|
||||
|
7
includes/discovery/os/tplink.inc.php
Normal file
7
includes/discovery/os/tplink.inc.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
if (strstr($sysObjectId, '.1.3.6.1.4.1.11863.1.1')) {
|
||||
$os = 'tplink';
|
||||
}
|
||||
}
|
5
includes/polling/os/tplink.inc.php
Normal file
5
includes/polling/os/tplink.inc.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
preg_match('/JetStream [0-9]+-Port/', $poll_device['sysDescr'], $tmp_hardware);
|
||||
|
||||
$hardware = $tmp_hardware[0];
|
Reference in New Issue
Block a user