mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added ScreenOS Syslog Hook (#9438)
* Add ScreenOS Syslog Hook Adds Syslog Hook for ScreenOS https://community.librenms.org/t/juniper-screenos-syslog-hook/6146 * Update Syslog.md * Update syslog-notify-oxidized.php
This commit is contained in:
@@ -277,6 +277,10 @@ $config['os']['iosxr']['syslog_hook'][] = Array('regex' => '/%GBL-CONFIG-6-DB_CO
|
||||
```ssh
|
||||
$config['os']['junos']['syslog_hook'][] = Array('regex' => '/%UI_COMMIT:/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
|
||||
```
|
||||
#### Juniper ScreenOS
|
||||
```ssh
|
||||
$config['os']['screenos']['syslog_hook'][] = Array('regex' => '/System configuration saved/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
|
||||
```
|
||||
|
||||
#### Allied Telesis Alliedware Plus
|
||||
**Note:** At least software version 5.4.8-2.1 is required. ```log host x.x.x.x level notices program imi``` may also be required depending on configuration. This is to ensure the syslog hook log message gets sent to the syslog server.
|
||||
|
@@ -24,4 +24,6 @@ if (preg_match('/(SYS-(SW[0-9]+-)?5-CONFIG_I|VSHD-5-VSHD_SYSLOG_CONFIG_I): Confi
|
||||
oxidized_node_update($hostname, $msg, $matches['user']);
|
||||
} elseif (preg_match('/IMI.+.Startup-config saved on .+ by (?P<user>.+) via .*/', $msg, $matches)) {
|
||||
oxidized_node_update($hostname, $msg, $matches['user']); //Alliedware Plus devices. Requires at least V5.4.8-2.1
|
||||
} elseif (preg_match('/System configuration saved/', $msg, $matches)) {
|
||||
oxidized_node_update($hostname, $msg); //ScreenOS
|
||||
}
|
||||
|
Reference in New Issue
Block a user