diff --git a/includes/syslog.php b/includes/syslog.php index a84a79a49..9dce07106 100644 --- a/includes/syslog.php +++ b/includes/syslog.php @@ -111,6 +111,15 @@ function process_syslog($entry, $update) { } unset($matches); + } + else if ($os == 'procurve') { + $matches = array(); + if (preg_match('/^(?P[A-Za-z]+): {2}(?P.*)/', $entry['msg'], $matches)) { + $entry['msg'] = $matches['msg']. " [". $entry['program']. "]"; + $entry['program'] = $matches['program']; + } + unset($matches); + }//end if if (!isset($entry['program'])) {