Skip to content

Commit

Permalink
This adds support for EAP600 and possibly other engenius access point…
Browse files Browse the repository at this point in the history
…s and should fix issue librenms#183
  • Loading branch information
Greg Bolte committed Mar 12, 2014
1 parent a0650f0 commit b87d65a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
9 changes: 8 additions & 1 deletion includes/discovery/os/engenius.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
{
if (strstr($sysObjectId, ".1.3.6.1.4.1.14125.100.1.3")) { $os = "engenius"; }
else if (strstr($sysObjectId, ".1.3.6.1.4.1.14125.101.1.3")) { $os = "engenius"; }
else if ($sysDescr == "Wireless Access Point")
{
if (!empty(snmp_get($device, "SNMPv2-SMI::enterprises.14125.2.1.1.6.0", "-Oqv", "")))
{
$os = "engenius";
}
}
}

?>
?>
23 changes: 18 additions & 5 deletions includes/polling/os/engenius.inc.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,30 @@
<?php

# Sorry about the OIDs but there doesn't seem to be a matching MIB available... :-/

if(!empty(snmp_get($device, "1.3.6.1.4.1.14125.100.1.8.0", "-OQv")))
{
$version = "Kernel " . trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.8.0", "-OQv"),'" ');
$version .= " / Apps " . trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.9.0", "-OQv"),'" ');

}
else
{
$version = "Firmware " . trim(snmp_get($device, "1.3.6.1.4.1.14125.2.1.1.5.0", "-OQv"),'" ');
}
$serial = trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.7.0", "-OQv"),'" ');

# There doesn't seem to be a real hardware identification.. sysName will have to do?
if(!empty(snmp_get($device, "1.3.6.1.4.1.14125.100.1.6.0", "-OQv")))
{
$hardware = str_replace("EnGenius ","",snmp_get($device,"sysName.0", "-OQv")) . " v" . trim(snmp_get($device, "1.3.6.1.4.1.14125.100.1.6.0", "-OQv"),'" .');
}
else
{
$hardware = snmp_get($device,"sysName.0", "-OQv") . trim(snmp_get($device, "1.3.6.1.4.1.14125.3.1.1.5.0", "-OQv"),'" .');
}

$mode = snmp_get($device, "1.3.6.1.4.1.14125.100.1.4.0", "-OQv");

if(is_numeric($mode))
{
switch ($mode)
{
case 0:
Expand All @@ -33,5 +46,5 @@
$features = "WDS Bridge mode";
break;
}

?>
}
?>

0 comments on commit b87d65a

Please sign in to comment.