Skip to content

Commit 566ea12

Browse files
sukhwinder33445nilmerg
authored andcommitted
Update templates for Icinga Powershell plugins
1 parent 48151b3 commit 566ea12

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

templates/cpu_windows_powershell_framework.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,23 @@ yUnitSystem = "none"
1717
load.value = "alias(color($metric$, '#1a7dd7'), 'CPU usage(%)')"
1818
crit.value = "alias(color($metric$, '#ff0000'), 'Crit (%)')"
1919
warn.value = "alias(color($metric$, '#ff8d00'), 'Warn (%)')"
20+
21+
[load-windows-multi.graph]
22+
check_command = "Invoke-IcingaCheckCPU"
23+
24+
[load-windows-multi.metrics_filters]
25+
load.value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.value"
26+
crit.value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.crit"
27+
warn.value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.warn"
28+
29+
[load-windows-multi.urlparams]
30+
areaAlpha = "0.5"
31+
lineWidth = "2"
32+
min = "0"
33+
title = "CPU ($index$::$template$::$label_name$) %"
34+
yUnitSystem = "none"
35+
36+
[load-windows-multi.functions]
37+
load.value = "alias(color($metric$, '#1a7dd7'), 'CPU usage(%)')"
38+
crit.value = "alias(color($metric$, '#ff0000'), 'Crit (%)')"
39+
warn.value = "alias(color($metric$, '#ff8d00'), 'Warn (%)')"

templates/disk_windows_powershell_framework.ini

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,28 @@ max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')"
2020
crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')"
2121
warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')"
2222

23+
[disk-multi.graph]
24+
check_command = "Invoke-IcingaCheckUsedPartitionSpace"
25+
26+
[disk-multi.metrics_filters]
27+
value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.value"
28+
max = "$service_name_template$.perfdata.$index$.$template$.$label_name$.max"
29+
crit = "$service_name_template$.perfdata.$index$.$template$.$label_name$.crit"
30+
warn = "$service_name_template$.perfdata.$index$.$template$.$label_name$.warn"
31+
[disk-multi.urlparams]
32+
areaAlpha = "0.5"
33+
areaMode = "first"
34+
lineWidth = "2"
35+
min = "0"
36+
title = "Disk $index$::$template$::$label_name$"
37+
yUnitSystem = "binary"
38+
39+
[disk-multi.functions]
40+
value = "alias(color($metric$, '#1a7dd7'), 'Used (bytes)')"
41+
max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')"
42+
crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')"
43+
warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')"
44+
2345
[disk-percent.graph]
2446
check_command = "Invoke-IcingaCheckUsedPartitionSpace"
2547

templates/memory_windows_powershell_framework.ini

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,28 @@ max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')"
2121
crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')"
2222
warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')"
2323

24+
[memory-multi.graph]
25+
check_command = "Invoke-IcingaCheckMemory"
26+
27+
[memory-multi.metrics_filters]
28+
value = "$service_name_template$.perfdata.$index$.$template$.$label_name$.value"
29+
max = "$service_name_template$.perfdata.$index$.$template$.$label_name$.max"
30+
crit = "$service_name_template$.perfdata.$index$.$template$.$label_name$.crit"
31+
warn = "$service_name_template$.perfdata.$index$.$template$.$label_name$.warn"
32+
33+
[memory-multi.urlparams]
34+
areaAlpha = "0.5"
35+
areaMode = "all"
36+
lineWidth = "2"
37+
title = "Memory used ($index$::$template$::$label_name$)"
38+
yUnitSystem = "none"
39+
40+
[memory-multi.functions]
41+
value = "alias(color($metric$, '#1a7dd7'), 'Used (bytes)')"
42+
max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')"
43+
crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')"
44+
warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')"
45+
2446
[memory-percent.graph]
2547
check_command = "Invoke-IcingaCheckMemory"
2648

0 commit comments

Comments
 (0)