mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Added Hikvision support
This commit is contained in:
@@ -451,6 +451,10 @@ function isSNMPable($device)
|
||||
global $config;
|
||||
|
||||
$pos = snmp_get($device, "sysObjectID.0", "-Oqv", "SNMPv2-MIB");
|
||||
if(empty($pos)) {
|
||||
// Support for Hikvision
|
||||
$pos = snmp_get($device, "SNMPv2-SMI::enterprises.39165.1.1.0", "-Oqv", "SNMPv2-MIB");
|
||||
}
|
||||
if ($pos === '' || $pos === false)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user