From d844ba7d3b2af9a53e5ef6ff0099f3b982aed0a0 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Fri, 5 Apr 2024 11:01:15 +0200 Subject: [PATCH] wip --- .../cpu_windows_powershell_framework.ini | 20 +++++++++++++++ .../disk_windows_powershell_framework.ini | 22 ++++++++++++++++ .../memory_windows_powershell_framework.ini | 25 +++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/templates/cpu_windows_powershell_framework.ini b/templates/cpu_windows_powershell_framework.ini index f156851b..d9abeae5 100644 --- a/templates/cpu_windows_powershell_framework.ini +++ b/templates/cpu_windows_powershell_framework.ini @@ -17,3 +17,23 @@ yUnitSystem = "none" load.value = "alias(color($metric$, '#1a7dd7'), 'CPU usage(%)')" crit.value = "alias(color($metric$, '#ff0000'), 'Crit (%)')" warn.value = "alias(color($metric$, '#ff8d00'), 'Warn (%)')" + +[load-windows-multi.graph] +check_command = "Invoke-IcingaCheckCPU" + +[load-windows-multi.metrics_filters] +load.value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.value" +crit.value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.crit" +warn.value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.warn" + +[load-windows-multi.urlparams] +areaAlpha = "0.5" +lineWidth = "2" +min = "0" +title = "CPU ($index$::$template$::$label_name$) %" +yUnitSystem = "none" + +[load-windows-multi.functions] +load.value = "alias(color($metric$, '#1a7dd7'), 'CPU usage(%)')" +crit.value = "alias(color($metric$, '#ff0000'), 'Crit (%)')" +warn.value = "alias(color($metric$, '#ff8d00'), 'Warn (%)')" diff --git a/templates/disk_windows_powershell_framework.ini b/templates/disk_windows_powershell_framework.ini index 1b8e827f..2c07041c 100644 --- a/templates/disk_windows_powershell_framework.ini +++ b/templates/disk_windows_powershell_framework.ini @@ -20,6 +20,28 @@ max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')" crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')" warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')" +[disk-multi.graph] +check_command = "Invoke-IcingaCheckUsedPartitionSpace" + +[disk-multi.metrics_filters] +value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.value" +max = "$service_name_template$.perfdata.$index$.$template$.$label_name$.max" +crit = "$service_name_template$.perfdata.$index$.$template$.$label_name$.crit" +warn = "$service_name_template$.perfdata.$index$.$template$.$label_name$.warn" +[disk-multi.urlparams] +areaAlpha = "0.5" +areaMode = "first" +lineWidth = "2" +min = "0" +title = "Disk $index$::$template$::$label_name$" +yUnitSystem = "binary" + +[disk-multi.functions] +value = "alias(color($metric$, '#1a7dd7'), 'Used (bytes)')" +max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')" +crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')" +warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')" + [disk-percent.graph] check_command = "Invoke-IcingaCheckUsedPartitionSpace" diff --git a/templates/memory_windows_powershell_framework.ini b/templates/memory_windows_powershell_framework.ini index 53f89f4b..7524f79d 100644 --- a/templates/memory_windows_powershell_framework.ini +++ b/templates/memory_windows_powershell_framework.ini @@ -21,6 +21,28 @@ max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')" crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')" warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')" +[memory-multi.graph] +check_command = "Invoke-IcingaCheckMemory" + +[memory-multi.metrics_filters] +value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.value" +max = "$service_name_template$.perfdata.$index$.$template$.$label_name$.max" +crit = "$service_name_template$.perfdata.$index$.$template$.$label_name$.crit" +warn = "$service_name_template$.perfdata.$index$.$template$.$label_name$.warn" + +[memory-multi.urlparams] +areaAlpha = "0.5" +areaMode = "all" +lineWidth = "2" +title = "Memory used ($index$::$template$::$label_name$)" +yUnitSystem = "none" + +[memory-multi.functions] +value = "alias(color($metric$, '#1a7dd7'), 'Used (bytes)')" +max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')" +crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')" +warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')" + [memory-percent.graph] check_command = "Invoke-IcingaCheckMemory" @@ -40,3 +62,6 @@ title = "Memory % used" value = "alias(color($metric$, '#1a7dd7'), 'Used (%)')" crit = "alias(color($metric$, '#ff0000'), 'Crit (%)')" warn = "alias(color($metric$, '#ff8d00'), 'Warn (%)')" + +[memory-percent-multi.graph] +check_command = "Invoke-IcingaCheckMemory"