To all my companions in misfortune having to deal with ScreenOS Juniper’s and want to have their configs “oxidized” with with LibreNMS
After a couple of hour frustration I stumbled over Add other vendors to oxidized syslog hook
In short,
- Add
$config['os']['screenos']['syslog_hook'][] = Array('regex' => '/System configuration saved/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
to your config.php
- Add
} elseif (preg_match('/System configuration saved/', $msg, $matches)) {
oxidized_node_update($hostname, $msg, $matches['user']); //ScreenOS
to your scripts/syslog-notify.php
- Reboot !!
Admin, can you please mainline the syslog-notify.php snippet and update the wiki ( https://docs.librenms.org/Extensions/Syslog/#external-hooks )
Regards,
Stefan