Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit cdf90f1

Browse files
author
Addon Factory template
committed
fix: revert change to use snmp index as split by
1 parent 6e94cad commit cdf90f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

splunk_connect_for_snmp_mib_server/translator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ def format_metric_data(self, var_bind):
351351

352352
# Construct metric data
353353
snmp_index = translated_oid.split(".")[-1]
354-
if snmp_index.isnumeric():
355-
metric_data["snmp_index"] = snmp_index
356-
translated_oid = translated_oid[: -len(f".{snmp_index}")]
354+
# if snmp_index.isnumeric():
355+
# metric_data["snmp_index"] = snmp_index
356+
# translated_oid = translated_oid[: -len(f".{snmp_index}")]
357357
metric_data[
358358
"metric_name"
359359
] = f'sc4snmp.{translated_oid.replace(".","_").replace("::", ".")}'

0 commit comments

Comments
 (0)