librenms-librenms/includes/polling/device-dell-laser.inc.php
Tom Laermans 483f733bd9 fix bug in hardware string for dell laser
git-svn-id: http://www.observium.org/svn/observer/trunk@1171 61d68cd4-352d-0410-923a-c4978735b2b8
2010-06-14 14:15:14 +00:00

15 lines
391 B
PHP

<?php
$hardware = trim(exec($config['snmpget'] . " -O Qv -" . $device['snmpver'] . " -c " . $device['community'] . " " .
$device['hostname'].":".$device['port'] . " hrDeviceDescr.1"));
list(,$version) = split('Engine ',$sysDescr);
$version = "Engine " . trim($version,')');
if (strstr($hardware ,';'))
{
$hardware = substr($hardware,0,strpos($hardware,';'));
}
?>