2015-02-19 23:05:10 +01:00
|
|
|
<?php
|
|
|
|
/*
|
2015-07-13 20:10:26 +02:00
|
|
|
* LibreNMS Cisco Small Business OS information module
|
|
|
|
*
|
|
|
|
* Copyright (c) 2015 Mike Rostermund <mike@kollegienet.dk>
|
|
|
|
* 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.
|
|
|
|
*/
|
2016-06-22 21:47:09 +02:00
|
|
|
|
|
|
|
if ($poll_device['sysObjectID'] == '.1.3.6.1.4.1.9.6.1.89.26.1') {
|
2016-06-22 21:58:09 +02:00
|
|
|
$hardware = 'SG220-26';
|
2016-08-28 12:32:58 -05:00
|
|
|
} else {
|
2016-12-24 20:52:21 +00:00
|
|
|
$hardware = str_replace(' ', '', snmp_get($device, 'rlPhdUnitGenParamModelName.1', '-Ovq', 'CISCOSB-Physicaldescription-MIB'));
|
2016-06-22 21:58:09 +02:00
|
|
|
}
|
|
|
|
|
2016-12-24 20:52:21 +00:00
|
|
|
$version = snmp_get($device, 'rlPhdUnitGenParamSoftwareVersion.1', '-Ovq', 'CISCOSB-Physicaldescription-MIB');
|
|
|
|
$serial = snmp_get($device, 'rlPhdUnitGenParamSerialNum.1', '-Ovq', 'CISCOSB-Physicaldescription-MIB');
|
|
|
|
$features = snmp_get($device, 'rlPhdUnitGenParamServiceTag.1', '-Ovq', 'CISCOSB-Physicaldescription-MIB');
|