feature: Added support for syslog Oxidized notification on Huawei VRP switches… (#8562)

This commit is contained in:
PipoCanaja
2018-04-17 11:32:41 +02:00
committed by Neil Lathwood
parent 146fc985aa
commit b133aaa718

View File

@@ -41,4 +41,7 @@ if (preg_match('/(SYS-(SW[0-9]+-)?5-CONFIG_I|VSHD-5-VSHD_SYSLOG_CONFIG_I): Confi
} elseif (preg_match('/startup-config was changed by (?P<user>.+) from telnet client .*/', $msg, $matches)) {
$username = $matches['user'];
oxidized_node_update($hostname, $username, $msg);
} elseif (preg_match('/HWCM\/4\/CFGCHANGE/', $msg, $matches)) { //Huawei VRP devices CFGCHANGE syslog
$username = 'not_provided'; //Huawei VRP syslog does not provide username here.
oxidized_node_update($hostname, $username, $msg);
}