mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Non greedy match for IOS-XR works better (#6872)
This commit is contained in:
@@ -32,7 +32,7 @@ $msg = $argv[3];
|
||||
if (preg_match('/(SYS-(SW[0-9]+-)?5-CONFIG_I|VSHD-5-VSHD_SYSLOG_CONFIG_I): Configured from .+ by (?P<user>.+) on .*/', $msg, $matches)) {
|
||||
$username = $matches['user'];
|
||||
oxidized_node_update($hostname, $username, $msg);
|
||||
} elseif (preg_match('/GBL-CONFIG-6-DB_COMMIT : Configuration committed by user \\\\\'(?P<user>.+)\\\\\'..*/', $msg, $matches)) {
|
||||
} elseif (preg_match('/GBL-CONFIG-6-DB_COMMIT : Configuration committed by user \\\\\'(?P<user>.+?)\\\\\'..*/', $msg, $matches)) {
|
||||
$username = $matches['user'];
|
||||
oxidized_node_update($hostname, $username, $msg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user