Added Hikvision support

This commit is contained in:
Neil Lathwood
2015-01-05 21:06:49 +00:00
parent e0b4562b51
commit 8deae3ff79
5 changed files with 22 additions and 0 deletions
+4
View File
@@ -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;