mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add support for MOXA EDSG512E8-PoE * Add support for MOXA EDS-G512E-8PoE * Add support for MOXA EDS-G512E-8PoE * Remove whitespace * Create MOXA-EDSG512E8POE-MIB * Delete MOXA-EDSG512E8POE-MIB * Create MOXA-EDSG512E8POE-MIB * Delete MOXA-EDSG512E8POE-MIB * Create MOXA-EDSG512E8POE-MIB * Update moxa-etherdevice.yaml * Create moxa-etherdevice_edsg512epoe.snmprec * Create moxa-etherdevice_edsg512epoe.json * Add support for MOXA EDSG512E8-PoE * Add support for MOXA EDS-G512E-8PoE * Add support for MOXA EDS-G512E-8PoE * Remove whitespace * Create MOXA-EDSG512E8POE-MIB * Delete MOXA-EDSG512E8POE-MIB * Create MOXA-EDSG512E8POE-MIB * Delete MOXA-EDSG512E8POE-MIB * Create MOXA-EDSG512E8POE-MIB * Update moxa-etherdevice.yaml * Revert "Add Moxa EDS-G512E-8PoE test data" * Add test data for Moxa EDS-G512E-8PoE * Removed whitespace * Update moxa-etherdevice_edsg512epoe.json * Update moxa-etherdevice_edsp510a8poe.json
26 lines
754 B
PHP
26 lines
754 B
PHP
<?php
|
|
/*
|
|
* LibreNMS
|
|
*
|
|
* Copyright (c) 2017 Aldemir Akpinar <aldemir.akpinar@gmail.com>
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
* option) any later version. Please see LICENSE.txt at the top level of
|
|
* the source code distribution for details.
|
|
*/
|
|
|
|
$oids = array(
|
|
'hardware' => $device['sysObjectID'].'.1.2.0',
|
|
'version' => $device['sysObjectID'].'.1.4.0',
|
|
'serial' => $device['sysObjectID'].'.1.78.0',
|
|
);
|
|
|
|
$os_data = snmp_get_multi_oid($device, $oids);
|
|
|
|
foreach ($oids as $var => $oid) {
|
|
$$var = trim($os_data[$oid], '"');
|
|
}
|
|
|
|
unset($oids, $os_data);
|