-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
-
None
Requesting the preprocessing step for items the Replace function to also process regular expressions in addition to strings. In trying to process Ericsson MIBs/OIDs to a more readable format to output to ticketing.Attempted to create a macro with the regular expression but when used in Replace processing, that did not work as it processed literal string of the regexp.
SNMP Sample:
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=26172825
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.193.110.2.10.2.0.1
SNMPv2-SMI::enterprises.193.110.2.666.1.1.2.1.6.15.67.111.110.115.117.108.45.116.101.109.112.108.97.116.101.680201.6 type=4 value=STRING: "Consul-template is inactive or unreachable."
Regexp example in Macro:
{$ERI_CONSUL} = SNMPv2-SMI::enterprises.193.110.2.666.(.*).680201.6 type=4\s+value=STRING:
Replace preprocessing example
{$ERI_CONSUL} - Replace with "ERI ALERT DESCRIPTION = "
Referenced the following case but did not see a solution for the same: ZBXNEXT-4712