From 77cb4d0c4cd29c4c095fdc550916fd935df96a95 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 7 Apr 2012 18:23:12 +0000 Subject: [PATCH] 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 --- includes/polling/os/unix.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/polling/os/unix.inc.php b/includes/polling/os/unix.inc.php index c4a1269e68..4c00f0220a 100755 --- a/includes/polling/os/unix.inc.php +++ b/includes/polling/os/unix.inc.php @@ -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") {