barryodonovan 48b564703d newdevice: Added support for Eltek enexus (#7552)
* initial discovery

eltek-enexus discovery and polling

discovery and polling using yaml for subset of features

discovery and polling using yaml for subset of features

removed a few bits

removed some snmp_get() and renamed MIB

 removed header bar mini graph

added snmpget discovery to yaml

renamed os to enexus

undo rebase

* Update enexus.yaml
2017-11-06 17:25:24 +00:00

28 lines
1.1 KiB
PHP

<?php
/**
* enexus.inc.php
*
* -Description-
*
* 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 2017 Barry O'Donovan
* @author BArry O'Donovan <barry@lightnet.ie>
*/
$hardware = snmp_get($device, 'powerSystem.powerSystemModel.0', '-Ovqa', 'SP2-MIB');
$version = snmp_get($device, 'controlSystem.controlSystemInventory.controlUnitTable.controlUnitEntry.controlUnitSwVersion.1', '-Ovqa', 'SP2-MIB');