From ab73f62dbbd7e82f0713fd7e43f22fb9cb83563c Mon Sep 17 00:00:00 2001 From: Marsell Kukuljevic Date: Tue, 19 Nov 2024 18:27:30 +0100 Subject: [PATCH] Sometimes Microsoft returns no data for KeyVault latency (e.g. there were no KeyVault requests). Client wanted this to default to a latency of 0. --- check_mk-azure/azure-spearhead-0.2.2.mkp | Bin 5683 -> 0 bytes check_mk-azure/azure-spearhead-0.2.3.mkp | Bin 0 -> 5695 bytes .../base/plugins/agent_based/azure_common.py | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100755 check_mk-azure/azure-spearhead-0.2.2.mkp create mode 100755 check_mk-azure/azure-spearhead-0.2.3.mkp diff --git a/check_mk-azure/azure-spearhead-0.2.2.mkp b/check_mk-azure/azure-spearhead-0.2.2.mkp deleted file mode 100755 index 509d3a3b0ce53f2ed022bb80cfb90d877c24b290..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5683 zcmZ{mWl$6VqqTvhySr=Y5Tv`ik?!tPN?1}tkWP^fl@J!mW$Bd;X~d;Nx?`!mcjo)< z`|I9+XU_Te%$%8r=_57@jfc1!8uCQeD`>S1jHtJZ0iTqM=6*}GlP%$*VFLQR&*Eg1 z_Hq5BURkcHp`@INulUDM_Temqib#%KE01AS)32Gy8)q5jWM{6l5sOiIJ_=B#v-fjT zf5I|)>jIv2NH?C*#lOG(D>SlJQ{HkQ54HfNSSV)3hkKH`4 z8b(&NXp7%u!#oIp!S{xGb&gVaBWBl1_G(d5uBd)Cotn#*TdVX4`VQk19jaCd=pBC8EhNjxIqWNd|5|iC-yI0Ax|Q|@;)M;q435F zWcn78e^a0y;Fa6nR74q0*Jti8W?*PeRmO;$b2CV_X>yr0;h>OvOO^1aV(>S0!eNC- zGhyuf-RC^(c9hP*m4SW=N-jyMW+@A-r8f=%V8W>e3?{Fe&w0UrD*{LToS@b}nxbw3 zF=QL9^52*oVYsWd+IsjCH`#AsFE&uU0m<0`k!V1A(fHwZ=xV}n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Q0re zLc`6nD%*8;fsVWlLiOP@i*6kg%lSMc*oWH3S8t?ENRX$7tz5Xe5RJnpsxUhbXjM#{ zSJ0?QeZc)W&))R5#eRx?HvQJvCX1t8sGUeaBPM0f78p=iwUWK6RCV)&dj7zEl^^IS zH~J029>ic5dW*~Jj@@}1EYUZZLDy5!$GcX>`orTb3_D*OPpRzhHL>5-vmCiD!Cjy| zq6b-<6c|s^BpQoj1hCnc8LB9*3u{#E_O;M`EpSNLLfJ8OPg7GtEV?FFIa;TP-0Eyx z@N8C(|DZV|7VI9i=uwD)5?iX;IMfVA+?bf(fx2&H`N!f{vI`W5N%aI_Jg ztf=4bgA!ethDiut@4ZjLDeQq2!#SJ>`+=FWi1E7S4T9M`7FN1Ehz}RdHP)I9OsUy6 zE_Q|sK;!y*i$O<;K+Y?9r2oYmn|*=}!P848MnULwD=n5FYrWX&R7we-FI4q@&;%_= yWK^9*QHp1<3e8`m9}h*Q~dV~Ia4%#Ie+J69)79>&t literal 0 HcmV?d00001 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 820fcee..cbe5895 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 @@ -56,7 +56,7 @@ def check_keyvault(item, params, section): availability = metrics.get("Availability") capacity = metrics.get("SaturationShoebox") - latency = metrics.get("ServiceApiLatency") + latency = metrics.get("ServiceApiLatency", 0) hits = metrics.get("ServiceApiHit") results = metrics.get("ServiceApiResult")