#!/usr/bin/env php $username, "msg" => $msg]; $oxidized_url = Config::get('oxidized.url'); if (!empty($oxidized_url)) { Requests::put("$oxidized_url/node/next/$hostname", [], json_encode($postdata), ['proxy' => get_proxy()]); } }//end oxidized_node_update() $hostname = $argv[1]; $os = $argv[2]; $msg = $argv[3]; if (preg_match('/(SYS-(SW[0-9]+-)?5-CONFIG_I|VSHD-5-VSHD_SYSLOG_CONFIG_I): Configured from .+ by (?P.+) on .*/', $msg, $matches)) { oxidized_node_update($hostname, $msg, $matches['user']); } elseif (preg_match('/GBL-CONFIG-6-DB_COMMIT : Configuration committed by user \\\\\'(?P.+?)\\\\\'..*/', $msg, $matches)) { oxidized_node_update($hostname, $msg, $matches['user']); } elseif (preg_match('/ASA-(config-)?5-111005: (?P.+) end configuration: OK/', $msg, $matches)) { oxidized_node_update($hostname, $msg, $matches['user']); } elseif (preg_match('/startup-config was changed by (?P.+) from telnet client .*/', $msg, $matches)) { oxidized_node_update($hostname, $msg, $matches['user']); } elseif (preg_match('/HWCM\/4\/CFGCHANGE/', $msg, $matches)) { //Huawei VRP devices CFGCHANGE syslog oxidized_node_update($hostname, $msg); }