Files
librenms-librenms/includes/polling/os/benuos.inc.php
2020-09-21 15:43:38 +02:00

10 lines
274 B
PHP

<?php
preg_match('/BenuOS\, (.*)\n.Product\:(.*)\n.*\n.*\n Chassis Type \:(.*)/', $device['sysDescr'], $matches);
$version = $matches['1'];
$features = $matches['2'];
$hardware = $matches['3'];
$serial = snmp_get($device, 'benuChassisId.0', '-Ovqs', 'BENU-CHASSIS-MIB');