mirror of
https://github.com/librenms/librenms.git
synced 2024-09-29 06:16:43 +00:00
5b5af4b20f
git-svn-id: http://www.observium.org/svn/observer/trunk@1305 61d68cd4-352d-0410-923a-c4978735b2b8
15 lines
287 B
PHP
15 lines
287 B
PHP
<?php
|
|
|
|
$hardware = snmp_get($device, "hrDeviceDescr", "-OQv", "HOST-RESOURCES-MIB");
|
|
|
|
list(,$version) = split('Engine ',$sysDescr);
|
|
|
|
$version = "Engine " . trim($version,')');
|
|
|
|
if (strstr($hardware ,';'))
|
|
{
|
|
$hardware = substr($hardware,0,strpos($hardware,';'));
|
|
}
|
|
|
|
?>
|