newdevice: Additional support for Hikvision products (#4750)

newdevice: Additional support for Hikvision products
This commit is contained in:
Neil Lathwood
2016-10-09 18:36:43 +01:00
committed by Søren Rosiak
parent 928cdb1638
commit 856ad3041b
4 changed files with 6 additions and 0 deletions

View File

@@ -1786,6 +1786,8 @@ $os = 'hikvision';
$config['os'][$os]['text'] = 'Hikvision';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'hikvision';
$config['os'][$os]['over'][0]['graph'] = 'device_uptime';
$config['os'][$os]['over'][0]['text'] = 'Device Uptime';
// Canopy / Cambium support
$os = 'cambium';

View File

@@ -2,4 +2,6 @@
if (str_contains(snmp_get($device, '.1.3.6.1.4.1.39165.1.6.0', '-Oqv', ''), 'Hikvision')) {
$os = 'hikvision';
} elseif (starts_with($sysDescr, 'Hikvision company products')) {
$os = 'hikvision';
}

View File

@@ -584,6 +584,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
public function testHikvision()
{
$this->checkOS('hikvision');
$this->checkOS('hikvision', 'hikvision1');
}
public function testHp3par()

View File

@@ -0,0 +1 @@
1.3.6.1.2.1.1.1.0|4|Hikvision company products