Detect Dell systems and servicetag on Windows the same way as on "unix"

Patch by RobJE.


git-svn-id: http://www.observium.org/svn/observer/trunk@2982 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-07 22:26:52 +00:00
parent 77cb4d0c4c
commit 316b31acb1
+8
View File
@@ -57,4 +57,12 @@ if (strstr($poll_device['sysDescr'], "Multiprocessor")) { $features = "Multiproc
### Detect processor type? : I.E. x86 Family 15 Model 2 Stepping 7
// Detect Dell hardware via OpenManage SNMP
$hw = snmp_get($device, ".1.3.6.1.4.1.674.10892.1.300.10.1.9.1", "-Oqv", "MIB-Dell-10892");
$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));
?>