mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user