mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Fix error when missing poller data * Apparently impossible to detect regex without error, so require regex always. Update docs. * Apparently this adva code is garbage :D * Missing count sensor type * Processor handle missing input * Handle missing ifName a little better * Yep, ports module is a dumpster fire. Attempt to clean up some. * apparently os yaml trying to replace on non-existent fields * Might as well define all sensor type units * revert previous fix, real issue was vlans module does not have polling.
15 lines
534 B
YAML
15 lines
534 B
YAML
modules:
|
|
os:
|
|
sysDescr_regex:
|
|
- '/Machine Type: (?<hardware>\w+) Processor id: (?<serial>\w+)[^:]* version: (?<version>[\d.]+)/' # standard snmp daemon
|
|
- '/^AIX .* (?<version>\d+ \d+) (?<serial>\S+)$/' # net-snmp daemon
|
|
serial: IBM-AIX-MIB::aixSeSerialNumber.0
|
|
serial_replace:
|
|
- '/IBM,/'
|
|
hardware: IBM-AIX-MIB::aixSeMachineType.0
|
|
hardware_replace:
|
|
- '/IBM,/'
|
|
version_replace:
|
|
- '/(?<=^|\.)0+(?=[^.])/' # standard snmp daemon
|
|
- ['/(\d+) (\d+)/', '$2.$1'] # net-snmp daemon
|