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 253fe8a3 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 46800b3c
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/dell_powerconnect_psu-0.0.4-20230330.mkp "dell_powerconnect_psu-0.0.4-20230330.mkp" [PACKAGE]: ../../raw/master/mkp/dell_powerconnect_psu-0.0.5-20240616.mkp "dell_powerconnect_psu-0.0.5-20240616.mkp"
# Dell Power connect PSU # Dell Power connect PSU
Monitors the status of Dell Power connect power supplys. Monitors the status of Dell Power connect power supplys.
......
File added
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# 2023-03-30: Rewritten for cmk 2.x # 2023-03-30: Rewritten for cmk 2.x
# added current power consumption metric # added current power consumption metric
# 2024-06-16: fix crash in parse function ValueError (not enough values to unpack (expected 5, got 4))
# Tested with Dell PowerConnect 5448 and 5424 models. # Tested with Dell PowerConnect 5448 and 5424 models.
# Relevant SNMP OIDs: # Relevant SNMP OIDs:
...@@ -107,7 +108,11 @@ def parse_dell_powerconnect_psu(string_table: List[StringTable]) -> Optional[Dic ...@@ -107,7 +108,11 @@ def parse_dell_powerconnect_psu(string_table: List[StringTable]) -> Optional[Dic
return return
section = {} section = {}
for device_id, name, state, supply, current_power in string_table[1]: for entry in string_table[1]:
try:
device_id, name, state, supply, current_power = entry
except ValueError:
continue
# M6220 are blade switches which report valid values only for the "Main" # M6220 are blade switches which report valid values only for the "Main"
# sensor. The other one is reported as notFunctioning, but this is wrong. # sensor. The other one is reported as notFunctioning, but this is wrong.
# Simply ignore the "System" sensor for those devices. # Simply ignore the "System" sensor for those devices.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
'gui': ['metrics/psu_wattage.py']}, 'gui': ['metrics/psu_wattage.py']},
'name': 'dell_powerconnect_psu', 'name': 'dell_powerconnect_psu',
'title': 'Dell Power connect PSU', 'title': 'Dell Power connect PSU',
'version': '0.0.4-20230330', 'version': '0.0.5-20240616',
'version.min_required': '2.1.0b1', 'version.min_required': '2.1.0b1',
'version.packaged': '2.2.0p24', 'version.packaged': 'cmk-mkp-tool 0.2.0',
'version.usable_until': None} 'version.usable_until': None}
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