librenms/includes/polling/os/vrp.inc.php
Adam Amstrong 00121fd3f8 fixes to new poller
git-svn-id: http://www.observium.org/svn/observer/trunk@2233 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-03 21:46:25 +00:00

8 lines
219 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]));
?>