Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit fbf042eb authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent fa50766e
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -86,7 +86,7 @@ _opengear_models = {
def parse_inv_opengear_base(string_table: List[StringTable]) -> List | None:
try:
inv_data, ogSerialPortCTS, sysObjectID = string_table
inv_data, og_serial_port_cts, sys_object_id = string_table
except ValueError:
return
......@@ -96,14 +96,14 @@ def parse_inv_opengear_base(string_table: List[StringTable]) -> List | None:
return
try:
sysObjectID = sysObjectID[0][0]
sys_object_id = sys_object_id[0][0]
except (IndexError, ValueError):
return
if serial_number == 'N/A':
serial_number = ''
number_of_lines = len(ogSerialPortCTS)
model_name = _opengear_models.get((sysObjectID, number_of_lines), '')
number_of_lines = len(og_serial_port_cts)
model_name = _opengear_models.get((sys_object_id, number_of_lines), '')
section = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment