From 8022be335c2fe3d8d49e77100a078f638ba6fe0f Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Thu, 16 Dec 2021 17:35:30 +0100 Subject: [PATCH] update-availabe: put colors into functions section --- update-available.ini | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/update-available.ini b/update-available.ini index 5612d9e..7b89373 100644 --- a/update-available.ini +++ b/update-available.ini @@ -20,7 +20,9 @@ check_command = "Update-available" [update-available.urlparams] areaAlpha = "0.2" areaMode = "stacked" -colorList = "ff0000,6699aa" +; colors in functions section .. because if 1st value (security) is +; mising then the colors are wrong :-/ +; colorList = "6699aa,ff0000" lineWidth = "2" min = "0" yUnitSystem = "none" @@ -32,6 +34,5 @@ value = "$service_name_template$.perfdata.updates-available.value" [update-available.functions] -security = "alias($metric$, 'available security updates')" -value = "alias($metric$, 'available updates')" - +security = "alias(color($metric$, '#ff0000'), 'available security updates')" +value = "alias(color($metric$, '#6699aa'), 'available updates')" -- GitLab