diff --git a/check_mk-azure/azure-spearhead-0.5.0.mkp b/check_mk-azure/azure-spearhead-0.5.0.mkp deleted file mode 100755 index de229ec..0000000 Binary files a/check_mk-azure/azure-spearhead-0.5.0.mkp and /dev/null differ diff --git a/check_mk-azure/azure-spearhead-0.5.1.mkp b/check_mk-azure/azure-spearhead-0.5.1.mkp new file mode 100755 index 0000000..bad1aa7 Binary files /dev/null and b/check_mk-azure/azure-spearhead-0.5.1.mkp differ diff --git a/check_mk-azure/local/lib/check_mk/base/plugins/agent_based/azure_common.py b/check_mk-azure/local/lib/check_mk/base/plugins/agent_based/azure_common.py index bc5a927..df2061a 100644 --- a/check_mk-azure/local/lib/check_mk/base/plugins/agent_based/azure_common.py +++ b/check_mk-azure/local/lib/check_mk/base/plugins/agent_based/azure_common.py @@ -252,6 +252,9 @@ def check_defender(item, params, section): if state.value > State.OK.value: region_details.append(f"{severity}: {info}: {url}") + if region_details == []: + region_details = ["No Defender alerts"] + yield Result( state=final_state, summary=f"High: {num_high}, Medium: {num_med}, Low: {num_low}, Informational: {num_info}",