Neil Lathwood efe8b8858b device: Added detection for Red Lion Sixnet devices (#8576)
* device: Added detection for Red Lion Sixnet devices

* Added state sensors
2018-04-26 08:47:15 -05:00

31 lines
1.1 KiB
PHP

<?php
/**
* sixnet.inc.php
*
* RedLion Sixnet OS polling
*
* 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 2018 Neil Lathwood
* @author Neil Lathwood <gh+n@laf.io>
*/
$sixnet_data = snmp_get_multi_oid($device, ['serialNumber.0', 'firmwareRevision.0'], '-OUQs', 'SIXNET-MIB');
$serial = $sixnet_data['serialNumber.0'];
$version = $sixnet_data['firmwareRevision.0'];
unset($sixnet_data);