Syslog hook examples and documentation for Procurve devices (#13397)

* Add support for Procurve devices

Syslog hook support added for automatic Oxidized backups of devices running Procurve

* Add documentation for HPE/Aruba Procurve devices

Update documentation to support configuration of example Syslog hooks for HPE and Aruba devices running Procurve
This commit is contained in:
nq5
2021-10-21 08:45:16 +01:00
committed by GitHub
parent bc8efedc83
commit 5854244f5a
2 changed files with 19 additions and 0 deletions

View File

@@ -357,6 +357,17 @@ log host x.x.x.x level notices program imi // Required for Oxidized Syslog hook
log host source <eth0> log host source <eth0>
``` ```
### HPE/Aruba Procurve
```config
configure
logging severity warning
logging facility local6
logging librenms.ip control-descr “LibreNMS”
logging notify running-config-change
write memory
```
If you have permitted udp and tcp 514 through any firewall then that If you have permitted udp and tcp 514 through any firewall then that
should be all you need. Logs should start appearing and displayed should be all you need. Logs should start appearing and displayed
within the LibreNMS web UI. within the LibreNMS web UI.
@@ -439,6 +450,12 @@ to the syslog server.
$config['os']['awplus']['syslog_hook'][] = Array('regex' => '/IMI.+.Startup-config saved on/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php'); $config['os']['awplus']['syslog_hook'][] = Array('regex' => '/IMI.+.Startup-config saved on/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
``` ```
### HPE/Aruba Procurve
```ssh
$config['os']['procurve']['syslog_hook'][] = Array('regex' => '/Running Config Change/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
```
## Configuration Options ## Configuration Options
### Matching syslogs to hosts with different names ### Matching syslogs to hosts with different names

View File

@@ -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']); //Alliedware Plus devices. Requires at least V5.4.8-2.1 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)) { } elseif (preg_match('/System configuration saved/', $msg, $matches)) {
oxidized_node_update($hostname, $msg); //ScreenOS oxidized_node_update($hostname, $msg); //ScreenOS
} elseif (preg_match('/Running Config Change/', $msg, $matches)) {
oxidized_node_update($hostname, $msg); //HPE and Aruba Procurve devices
} }