From 49917c671ce656632b10228a74f22bee00734c35 Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Fri, 26 Feb 2010 14:02:00 +0000 Subject: [PATCH] - Additional Cisco hardware check. git-svn-id: http://www.observium.org/svn/observer/trunk@962 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/functions.php b/includes/functions.php index 9ac1c22241..ac9703bf69 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -811,6 +811,8 @@ function formatCiscoHardware(&$device, $short = false) } else { if (preg_match("/Cisco IOS Software, C([A-Za-z0-9]+) Software.*/", $device['sysDescr'], $matches)) { $device['hardware'] = "Cisco " . $matches[1]; + } elseif (preg_match("/Cisco IOS Software, ([0-9]+) Software.*/", $device['sysDescr'], $matches)) { + $device['hardware'] = "Cisco " . $matches[1]; } } }