mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
More eventlogs for snmptraps (#12112)
* Allow detailed trap display and inform user about snmptrapd misconfiguration * Documentation update * Documentation update * Documentation update * CodeClimate * CodeClimate * ChangeRequest PR * Fix tests * config_definitions translation doc * styleci * lnms translation generate after npm-install
This commit is contained in:
@@ -159,16 +159,21 @@ So what value should you type in the commands below? Oddly enough, simply supply
|
||||
### Event logging
|
||||
|
||||
You can configure generic event logging for snmp traps. This will log
|
||||
an event of the type trap for received traps. These events can be utilized for alerting.
|
||||
an event of the type trap for received traps. These events can be used for alerting.
|
||||
By default, only the TrapOID is logged. Buf you can enable the "detailed" variant,
|
||||
and all the data received with the trap will be logged.
|
||||
|
||||
In config.php
|
||||
The parameter can be found in General Settings / External / SNMP Traps Integration.
|
||||
|
||||
It can also be configured in ```config.php```
|
||||
|
||||
```php
|
||||
$config['snmptraps']['eventlog'] = 'unhandled';
|
||||
$config['snmptraps']['eventlog'] = 'unhandled'; //default value
|
||||
$config['snmptraps']['eventlog_detailed'] = 'false'; //default value
|
||||
```
|
||||
|
||||
Valid options are:
|
||||
|
||||
- `unhandled` only unhandled traps will be logged
|
||||
- `unhandled` only unhandled traps will be logged (default value)
|
||||
- `all` log all traps
|
||||
- `none` no traps will create a generic event log (handled traps may still log events)
|
||||
|
Reference in New Issue
Block a user