mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Human readable program, and append event ID to message
This commit is contained in:
@@ -111,6 +111,15 @@ function process_syslog($entry, $update) {
|
||||
}
|
||||
|
||||
unset($matches);
|
||||
}
|
||||
else if ($os == 'procurve') {
|
||||
$matches = array();
|
||||
if (preg_match('/^(?P<program>[A-Za-z]+): {2}(?P<msg>.*)/', $entry['msg'], $matches)) {
|
||||
$entry['msg'] = $matches['msg']. " [". $entry['program']. "]";
|
||||
$entry['program'] = $matches['program'];
|
||||
}
|
||||
unset($matches);
|
||||
|
||||
}//end if
|
||||
|
||||
if (!isset($entry['program'])) {
|
||||
|
Reference in New Issue
Block a user