Detect Dell servicetag as serialnumber through dell MIB on "unix" systems

Patch by RobJE.



git-svn-id: http://www.observium.org/svn/observer/trunk@2981 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-07 18:23:12 +00:00
parent 93c52e3acc
commit 77cb4d0c4c
+3
View File
@@ -28,6 +28,9 @@ if ($device['os'] == "linux" || $device['os'] == "endian")
$hw = trim(str_replace("\"", "", $hw));
if ($hw) { $hardware = "Dell " . $hw; }
$serial = snmp_get($device, ".1.3.6.1.4.1.674.10892.1.300.10.1.11.1", "-Oqv", "MIB-Dell-10892");
$serial = trim(str_replace("\"", "", $serial));
}
elseif ($device['os'] == "freebsd")
{