I am trying to get a Syslog hook to work with ProCurve switches. Whenever I put the line in the config.php librenms will no longer start.
$config['os']['procurve']['syslog_hook'][] = Array('regex' => '/Startup configuration changed/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
Hello,
Try to adopt to existing hooks from Syslog.md, like this:
$config['os']['junos']['syslog_hook'][] = Array('regex' => '/%UI_COMMIT:/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
Also you will need to add code to match into script itself.
You should replace =>
with =>
to avoid crashing with syntax error.