From b151a8c54d81712cae3c57770d39adc8d0008c4c Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 24 May 2012 11:14:36 +0000 Subject: [PATCH] shorten manufacturers git-svn-id: http://www.observium.org/svn/observer/trunk@3234 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/os/unix.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/polling/os/unix.inc.php b/includes/polling/os/unix.inc.php index 7287cddad..5feb16544 100755 --- a/includes/polling/os/unix.inc.php +++ b/includes/polling/os/unix.inc.php @@ -37,6 +37,10 @@ if ($device['os'] == "linux" || $device['os'] == "endian") if ($agent_data['dmi']['system-product-name']) { $hardware = ($agent_data['dmi']['system-manufacturer'] ? $agent_data['dmi']['system-manufacturer'] . ' ' : '') . $agent_data['dmi']['system-product-name']; + + # Clean up "Dell Computer Corporation" and "Intel Corporation" + $hardware = str_replace(" Computer Corporation","",$hardware); + $hardware = str_replace(" Corporation","",$hardware); } if ($agent_data['dmi']['system-serial-number'])