Files
librenms-librenms/includes/polling/os/benuos.inc.php
T
dnapper 02a7949c5e newdevice: Added Support for Benu OS (#6857)
* 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
2017-06-22 21:45:18 +01:00

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');