ImTheLucKyOne / check_mk_emcunity

Check_MK Extensions for Dell EMC Unity Storages
GNU General Public License v3.0
5 stars 8 forks source link

Service check Host Connection crashes if there are no host connections #15

Closed pdcemulator closed 4 years ago

pdcemulator commented 5 years ago

We have two shiny new Unity 350F boxes. Monitoring with cmk 1.5p19 is working fine, but the service "Host Connections" crashes all the time. This error is gone after configuring host connections, so this is a very low poriority issue. I will try to fix this in the next week.

cmk crash output

Python Version
2.7.15 (default, Jun 27 2019, 10:06:45) [GCC 8.2.0]

Exception
ValueError (max() arg is an empty sequence)

Traceback
File "/omd/sites/KSC/lib/python/cmk_base/checking.py", line 340, in execute_check     raw_result = check_function(item, determine_check_params(params), section_content)    File "/omd/sites/KSC/local/share/check_mk/checks/emcunity_hostcons", line 64, in check_emcunity_hostcons     (len(cons), max(states))

special agent output

[...]
<<<emcunity_hostcons:sep(61)>>>
<<<emcunity_sp:sep(61)>>>
[...]