mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
02a7949c5e
* 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
280 B
PHP
10 lines
280 B
PHP
<?php
|
|
|
|
preg_match('/BenuOS\, (.*)\n.Product\:(.*)\n.*\n.*\n Chassis Type \:(.*)/', $poll_device['sysDescr'], $matches);
|
|
|
|
$version = $matches['1'];
|
|
$features = $matches['2'];
|
|
$hardware = $matches['3'];
|
|
|
|
$serial = snmp_get($device, 'benuChassisId.0', '-Ovqs', 'BENU-CHASSIS-MIB');
|