This commit is contained in:
laf
2015-10-28 21:56:59 +00:00
parent b099cf6e77
commit b07c7e3226
4 changed files with 20 additions and 0 deletions

BIN
html/images/os/tplink.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -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';

View File

@ -0,0 +1,7 @@
<?php
if(!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.11863.1.1')) {
$os = 'tplink';
}
}

View File

@ -0,0 +1,5 @@
<?php
preg_match('/JetStream [0-9]+-Port/', $poll_device['sysDescr'], $tmp_hardware);
$hardware = $tmp_hardware[0];