librenms/includes/polling/os/vrp.inc.php
2015-07-11 16:12:35 +02:00

7 lines
222 B
PHP

<?php
$hardware = trim(snmp_get($device, '.1.3.6.1.4.1.2011.2.33.20.1.1.1.3.0', '-OQv'), '"');
preg_match("/Version .*\n/", $poll_device['sysDescr'], $matches);
$version = trim(str_replace('Version ', '', $matches[0]));