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

Commit 932f658

Browse files
committed
fix: add one more valid type for oid type checker & fix typo
1 parent c099dea commit 932f658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunk_connect_for_snmp_mib_server/translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def mib_translator(self, var_bind):
189189
self.find_mib_file(name)
190190

191191
# Check if value exists in mongo oids collection and if value was translated properly when value is OID type
192-
if valType == "ObjectIdentifier":
192+
if valType == "ObjectIdentifier" or valType == "ObjectIdentity":
193193
no_mapping_mib_val = self.check_mongo(val)
194194
logger.debug(f"no_mapping_mib_val: {no_mapping_mib_val}")
195195
if not no_mapping_mib_val and self.is_not_translated(val, trans_val):
@@ -269,7 +269,7 @@ def format_trap_event(self, var_binds):
269269
)
270270
)
271271
else:
272-
custom_translated_oid = ""
272+
custom_translated_mib_string = ""
273273

274274
original_value = "value{offset}={value}".format(offset=offset, value=value)
275275
val_type_string = "value{offset}-type={val_type}".format(

0 commit comments

Comments
 (0)