Files
librenms-librenms/includes/polling/os/advantech.inc.php
Mikkel Mondrup Kristensen 212c9aad95 Add support for Advantech switches (#11415)
* Add Advantech logo.

Taken from https://commons.wikimedia.org/wiki/File:Advantech_logo.svg
with minor edits (removed width and height).

* Add Advantech MIB files.

* Add Advantech definitions.

* Add suppor for version and hardware polling.

* Add advantech snmp recording.

* Add sensors for SFP ports

Each SFP will have temperature, voltage, tx bias, Tx/Rx power.
Also update snmp recording to include new data.

* Rename ADVANTECH-EKI-PRONEER-MIB_1_01.mib to ADVANTECH-EKI-PRONEER-MIB

* Rename advantech-common-mib.mib to ADVANTECH-COMMON-MIB

* Update advantech.yaml

* Update advantech.svg

* Create advantech.json

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2020-04-14 11:05:22 +02:00

28 lines
1.1 KiB
PHP

<?php
/**
* advantech.inc.php
*
* LibreNMS os poller module for Advantech
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link http://librenms.org
* @copyright 2020 Mikkel Mondrup Kristensen
* @author Mikkel Mondrup Kristensen <mikkel@tdx.dk>
*/
$version = snmp_get($device, 'sysImageVersion.0', '-OQva', 'ADVANTECH-COMMON-MIB', 'advantech');
$hardware = snmp_get($device, 'sysModuleID.0', '-OQva', 'ADVANTECH-COMMON-MIB', 'advantech');