mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -357,6 +357,17 @@ log host x.x.x.x level notices program imi // Required for Oxidized Syslog hook
|
||||
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
|
||||
should be all you need. Logs should start appearing and displayed
|
||||
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');
|
||||
```
|
||||
|
||||
### HPE/Aruba Procurve
|
||||
|
||||
```ssh
|
||||
$config['os']['procurve']['syslog_hook'][] = Array('regex' => '/Running Config Change/', 'script' => '/opt/librenms/scripts/syslog-notify-oxidized.php');
|
||||
```
|
||||
|
||||
## Configuration Options
|
||||
|
||||
### Matching syslogs to hosts with different names
|
||||
|
@@ -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
|
||||
} elseif (preg_match('/System configuration saved/', $msg, $matches)) {
|
||||
oxidized_node_update($hostname, $msg); //ScreenOS
|
||||
} elseif (preg_match('/Running Config Change/', $msg, $matches)) {
|
||||
oxidized_node_update($hostname, $msg); //HPE and Aruba Procurve devices
|
||||
}
|
||||
|
Reference in New Issue
Block a user