[ZBXNEXT-6728] Fix zabbix_trap_receiver.pl to use MIB for received VALUES translation.(OID already translates) Created: 2021 Jun 15 Updated: 2022 Apr 19 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Change Request | Priority: | Trivial |
Reporter: | Andrey Tocko (Inactive) | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() |
||||
Issue Links: |
|
Description |
Currently zabbix_trap_receiver.pl scripts is not able to translate\substitute integer values of received traps even if MIB holds description on it. Community solution: |
Comments |
Comment by Isaque Profeta [ 2022 Apr 19 ] |
Patch below has tested on 5.4 version zabbix_trap_receiver.pl, add it on line 104 inside foreach my $x (@varbinds) and before the printf inside the loop:
my $oid = $x->[0]; my $value = $x->[1]; $value =~ m/^([\w-]+): .+$/; $type = $1; $value =~ s/$type: //g; if ($translate = &SNMP::translateObj($oid, $value)) { $value = "$type: $value ($translate)"; } else { $value = "$type: $value"; }
|