mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Update avaya-ers.yaml Extreme bought avaya network assests so rebranding and moving some files. * Add files via upload Extreme bought avaya networking assets and so rebranding to Extreme and adding logos with OS for easier reading when on devices pages * Update avaya-vsp.yaml removing .1.3.6.1.4.1.45.3.79.1 This is a VSP 7024xl from avaya. This is techincally not VOSS but BOSS operating system. It should be in BOSS and avaya-ers.yaml * Add files via upload * Update and rename avaya-vsp.inc.php to extreme-voss.inc.php * Update and rename avaya-vsp.inc.php to extreme-voss.inc.php * Update and rename avaya-vsp.inc.php to extreme-voss.inc.php * Update extreme-voss.inc.php * Rename avaya-vsp.inc.php to extreme-voss.inc.php * Rename avaya-vsp.inc.php to extreme-voss.inc.php * Rename avaya-vsp.yaml to extreme-voss.yaml * Update and rename avaya-vsp.yaml to extreme-voss.yaml * Update avaya-ers.yaml * Rename avaya-ers.yaml to extreme-boss.yaml * Rename avaya-ers.inc.php to extreme-boss.inc.php * Update and rename avaya-ers.inc.php to extreme-boss.inc.php * Update and rename avaya-ers.inc.php to extreme-boss.inc.php * Update and rename avaya-ers.inc.php to extreme-boss.inc.php * Update and rename avaya-ers.inc.php to extreme-boss.inc.php * Update and rename avaya-ers.inc.php to extreme-boss.inc.php * Update extreme-boss.yaml * Update extreme-voss.yaml * Update and rename extreme-boss.yaml to boss.yaml * Update extreme-voss.yaml * Rename extreme-voss.yaml to voss.yaml * Rename extreme-boss.inc.php to boss.inc.php * Rename extreme-voss.inc.php to voss.inc.php * Rename extreme-boss.inc.php to boss.inc.php * Rename extreme-voss.inc.php to voss.inc.php * Update and rename extreme-voss.inc.php to voss.inc.php * Rename extreme-voss.yaml to voss.yaml * Rename extreme-voss.inc.php to voss.inc.php * Update and rename extreme-voss.inc.php to voss.inc.php * Update and rename extreme-boss.inc.php to boss.inc.php * Update and rename extreme-boss.inc.php to boss.inc.php * Update and rename extreme-boss.inc.php to boss.inc.php * Rename extreme-boss.inc.php to boss.inc.php * Update voss.inc.php * Update boss.inc.php * Update boss.inc.php * Update voss.inc.php * Update voss.inc.php * Update voss.inc.php * Update voss.inc.php * Update voss.inc.php * Update voss.inc.php * Update boss.inc.php * Update boss.inc.php * Update voss.inc.php * Update boss.inc.php * Update voss.inc.php * Update voss.inc.php * Rename avaya-vsp_8404c.snmprec to voss_8404c.snmprec * Rename avaya-vsp_8404.snmprec to voss_8404.snmprec * Rename avaya-vsp_8284xsq.snmprec to voss_8284xsq.snmprec * Rename avaya-vsp_7254xtq.snmprec to voss_7254xtq.snmprec * Rename avaya-vsp_7254xsq.snmprec to voss_7254xsq.snmprec * Rename avaya-vsp_7024xls.snmprec to boss_7024xls.snmprec * Rename avaya-vsp_4850gts.snmprec to voss_4850gts.snmprec * Rename avaya-vsp_4850gts-pwr.snmprec to voss_4850gts-pwr.snmprec * Rename avaya-vsp_4450gsx-pwr.snmprec to voss_4450gsx-pwr.snmprec * Rename avaya-ers.snmprec to boss.snmprec * Rename avaya-ers_1.snmprec to boss_1.snmprec * Update and rename avaya-ers.json to boss.json * Update and rename avaya-vsp_8404.json to voss_8404.json * Update and rename avaya-vsp_8404c.json to voss_8404c.json * Update and rename AvayaErs.php to Boss.php * Update Boss.php * Restore processor_type to avaya-ers in test data * Update voss_8404c.json * Update extremeboss.svg * Update extremevoss.svg
64 lines
1.8 KiB
PHP
64 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* Boss.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 2018 Tony Murray
|
|
* @author Tony Murray <murraytony@gmail.com>
|
|
*/
|
|
|
|
namespace LibreNMS\OS;
|
|
|
|
use LibreNMS\Device\Processor;
|
|
use LibreNMS\Interfaces\Discovery\ProcessorDiscovery;
|
|
use LibreNMS\OS;
|
|
|
|
class Boss extends OS implements ProcessorDiscovery
|
|
{
|
|
/**
|
|
* Discover processors.
|
|
* Returns an array of LibreNMS\Device\Processor objects that have been discovered
|
|
*
|
|
* @return array Processors
|
|
*/
|
|
public function discoverProcessors()
|
|
{
|
|
$data = snmpwalk_group($this->getDevice(), 's5ChasUtilCPUUsageLast10Minutes', 'S5-CHASSIS-MIB');
|
|
|
|
$processors = array();
|
|
$count = 1;
|
|
foreach ($data as $index => $entry) {
|
|
$processors[] = Processor::discover(
|
|
"avaya-ers",
|
|
$this->getDeviceId(),
|
|
".1.3.6.1.4.1.45.1.6.3.8.1.1.6.$index",
|
|
zeropad($count),
|
|
"Unit $count processor",
|
|
1,
|
|
$entry['sgProxyCpuCoreBusyPerCent']
|
|
);
|
|
|
|
$count++;
|
|
}
|
|
|
|
|
|
return $processors;
|
|
}
|
|
}
|