refactor: move Engenius discovery to yaml (#6428)

This commit is contained in:
Tony Murray 2017-04-15 02:11:51 -05:00 committed by Neil Lathwood
parent 01477a15f4
commit fa731f3826
2 changed files with 7 additions and 11 deletions

View File

@ -6,3 +6,10 @@ over:
- { graph: device_ucd_cpu, text: 'Processor Usage' }
- { graph: device_ucd_memory, text: 'Memory Usage' }
- { graph: device_bits, text: 'Device Traffic' }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.14125.100.1.3
- .1.3.6.1.4.1.14125.101.1.3
-
sysObjectId: .1.3.6.1.4.1.8072.3.2.10 #Linux
sysDescr: 'Wireless Access Point'

View File

@ -1,11 +0,0 @@
<?php
if (starts_with($sysObjectId, array('.1.3.6.1.4.1.14125.100.1.3', '.1.3.6.1.4.1.14125.101.1.3'))) {
$os = 'engenius';
} elseif (starts_with($sysDescr, 'Wireless Access Point')) {
// a little more description about what this does would be nice... ;-)
$engenius_snmpget = snmp_get($device, 'SNMPv2-SMI::enterprises.14125.2.1.1.6.0', '-Oqv', '');
if (!empty($engenius_snmpget)) {
$os = 'engenius';
}
}