mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Additional support for Hikvision products (#4750)
newdevice: Additional support for Hikvision products
This commit is contained in:
committed by
Søren Rosiak
parent
928cdb1638
commit
856ad3041b
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
@@ -584,6 +584,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
public function testHikvision()
|
||||
{
|
||||
$this->checkOS('hikvision');
|
||||
$this->checkOS('hikvision', 'hikvision1');
|
||||
}
|
||||
|
||||
public function testHp3par()
|
||||
|
||||
1
tests/snmpsim/hikvision1.snmprec
Normal file
1
tests/snmpsim/hikvision1.snmprec
Normal file
@@ -0,0 +1 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Hikvision company products
|
||||
Reference in New Issue
Block a user