mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added Basic OS support for Benu * Benu OS take 2 * Benu OS take 3 * Benu round 4 - this time for real * added benu sensors * reamed to benuos, renamed mibs, sensor rewrite pending * upated sensors to use snmp_get_multi * rename yaml * rename yaml * updated mempool discover to use multi get, fixed whitepaces, removed old commented out code from polling * changed detection from sysDescr to sysObjectId * Update benuos.yaml * Update benuos.inc.php * Update benuos.inc.php * Update benuos.inc.php * Update benuos.inc.php
10 lines
274 B
PHP
10 lines
274 B
PHP
<?php
|
|
|
|
if ($device['os'] === 'benuos') {
|
|
echo 'BENU CPU: ';
|
|
|
|
$descr = 'Processor';
|
|
$usage = snmp_get($device, 'bSysAvgCPUUtil5Min.0', '-OvQs', 'BENU-HOST-MIB');
|
|
discover_processor($valid['processor'], $device, $oid, 1, 'benuos', 'Processor', '1', $usage);
|
|
}
|