#!/usr/bin/env php \S+)/', $msg, $matches)) { $oxidized_api->updateNode($hostname, $msg, $matches['user']); } elseif (preg_match('/Configuration committed by user \\\\\'(?P.+?)\\\\\'/', $msg, $matches)) { $oxidized_api->updateNode($hostname, $msg, $matches['user']); } elseif (preg_match('/ASA-(config-)?5-111005: (?P\S+) end configuration: OK/', $msg, $matches)) { $oxidized_api->updateNode($hostname, $msg, $matches['user']); } elseif (preg_match('/startup-config was changed by (?P\S+)/', $msg, $matches)) { $oxidized_api->updateNode($hostname, $msg, $matches['user']); } elseif (preg_match('/UI_COMMIT: User \\\\\'(?P.+?)\\\\\'/', $msg, $matches)) { $oxidized_api->updateNode($hostname, $msg, $matches['user']); } elseif (preg_match('/IMI.+.Startup-config saved on .+ by (?P\S+)/', $msg, $matches)) { $oxidized_api->updateNode($hostname, $msg, $matches['user']); //Alliedware Plus devices. Requires at least V5.4.8-2.1 } elseif (isset($hostname, $msg)) { // without user detection... $oxidized_api->updateNode($hostname, $msg); }