Remove ubiquitiap os type from discovery and polling sub dirs

This commit is contained in:
Mark Gibbons
2015-04-04 22:06:31 +01:00
parent a462b56261
commit 06f95595cd
2 changed files with 0 additions and 22 deletions
-9
View File
@@ -1,9 +0,0 @@
<?php
if (!$os || $os == 'linux') {
if (stristr(snmp_get($device, "dot11manufacturerName.5", "-Oqv", "IEEE802dot11-MIB"),"Ubiquiti Networks") || stristr(snmp_get($device, "dot11manufacturerName.6", "-Oqv", "IEEE802dot11-MIB"),"Ubiquiti Networks")) {
$os = "ubiquitiap";
}
}
?>
-13
View File
@@ -1,13 +0,0 @@
<?php
$data = snmp_get_multi($device, "dot11manufacturerProductName.5 dot11manufacturerProductVersion.5", "-Oqv", "IEEE802dot11-MIB");
if (empty($data)) {
$data = snmp_get_multi($device, "dot11manufacturerProductName.6 dot11manufacturerProductVersion.6", "-Oqv", "IEEE802dot11-MIB");
}
$hardware = $data[0];
if (preg_match("/(v[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $data[1],$matches)) {
$version = $matches[0];
}
?>