mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +00:00
refactor: move Engenius discovery to yaml (#6428)
This commit is contained in:
parent
01477a15f4
commit
fa731f3826
@ -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'
|
||||
|
@ -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';
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user