Skip to content

Commit

Permalink
Update existing IfW-Plugin templates
Browse files Browse the repository at this point in the history
  • Loading branch information
tbauriedel committed Sep 11, 2024
1 parent 2f675e7 commit 581ebb6
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 44 deletions.
9 changes: 5 additions & 4 deletions templates/cpu_windows_powershell_framework.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
check_command = "Invoke-IcingaCheckCPU"

[load-windows.metrics_filters]
load.value = "$service_name_template$.perfdata.$load$.value"
crit.value = "$service_name_template$.perfdata.$load$.crit"
warn.value = "$service_name_template$.perfdata.$load$.warn"
load.value = "$service_name_template$.perfdata.$load$.ifw_cpu.load.value"
crit.value = "$service_name_template$.perfdata.$load$.ifw_cpu.load.crit"
warn.value = "$service_name_template$.perfdata.$load$.ifw_cpu.load.warn"

[load-windows.urlparams]
areaAlpha = "0.5"
lineWidth = "2"
min = "0"
max = "100"
title = "CPU $load$ %"
yUnitSystem = "none"

[load-windows.functions]
load.value = "alias(color($metric$, '#1a7dd7'), 'CPU usage(%)')"
crit.value = "alias(color($metric$, '#ff0000'), 'Crit (%)')"
warn.value = "alias(color($metric$, '#ff8d00'), 'Warn (%)')"
warn.value = "alias(color($metric$, '#ff8d00'), 'Warn (%)')"
21 changes: 21 additions & 0 deletions templates/disk_used_windows_powershell_framework.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[disk.graph]
check_command = "Invoke-IcingaCheckUsedPartitionSpace"

[disk.metrics_filters]
value = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.value"
max = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.max"
crit = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.crit"
warn = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.warn"
[disk.urlparams]
areaAlpha = "0.5"
areaMode = "first"
lineWidth = "2"
min = "0"
title = "Disk $disk$"
yUnitSystem = "binary"

[disk.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)')"
32 changes: 7 additions & 25 deletions templates/disk_windows_powershell_framework.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[disk.graph]
check_command = "Invoke-IcingaCheckUsedPartitionSpace"
check_command = "Invoke-IcingaCheckPartitionSpace"

[disk.metrics_filters]
value = "$service_name_template$.perfdata.used_space_$disk$.value"
max = "$service_name_template$.perfdata.used_space_$disk$.max"
crit = "$service_name_template$.perfdata.used_space_$disk$.crit"
warn = "$service_name_template$.perfdata.used_space_$disk$.warn"
value = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.value"
max = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.max"
crit = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.crit"
warn = "$service_name_template$.perfdata.$disk$.ifw_partitionspace.used.warn"

[disk.urlparams]
areaAlpha = "0.5"
areaMode = "first"
Expand All @@ -18,23 +19,4 @@ yUnitSystem = "binary"
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"

[disk-percent.metrics_filters]
value = "$service_name_template$.perfdata.$disk$.value"
crit = "$service_name_template$.perfdata.$disk$.crit"
warn = "$service_name_template$.perfdata.$disk$.warn"
[disk-percent.urlparams]
areaAlpha = "0.5"
areaMode = "first"
lineWidth = "2"
min = "0"
title = "Disk $disk$"

[disk-percent.functions]
value = "alias(color($metric$, '#1a7dd7'), 'Used (%)')"
crit = "alias(color($metric$, '#ff0000'), 'Crit (%)')"
warn = "alias(color($metric$, '#ff8d00'), 'Warn (%)')"
warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')"
33 changes: 18 additions & 15 deletions templates/memory_windows_powershell_framework.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
check_command = "Invoke-IcingaCheckMemory"

[memory.metrics_filters]
value = "$service_name_template$.perfdata.used_bytes.value"
max = "$service_name_template$.perfdata.used_bytes.max"
crit = "$service_name_template$.perfdata.used_bytes.crit"
warn = "$service_name_template$.perfdata.used_bytes.warn"
value = "$service_name_template$.perfdata.memory.ifw_memory.used.value"
max = "$service_name_template$.perfdata.memory.ifw_memory.used.max"
crit = "$service_name_template$.perfdata.memory.ifw_memory.used.crit"
warn = "$service_name_template$.perfdata.memory.ifw_memory.used.warn"

[memory.urlparams]
areaAlpha = "0.5"
Expand All @@ -21,22 +21,25 @@ max = "alias(color($metric$, '#cfd7e6'), 'Size (bytes)')"
crit = "alias(color($metric$, '#ff0000'), 'Crit (bytes)')"
warn = "alias(color($metric$, '#ff8d00'), 'Warn (bytes)')"

[memory-percent.graph]
[pagefile.graph]
check_command = "Invoke-IcingaCheckMemory"

[memory-percent.metrics_filters]
value = "$service_name_template$.perfdata.memory_percent_used.value"
crit = "$service_name_template$.perfdata.memory_percent_used.crit"
warn = "$service_name_template$.perfdata.memory_percent_used.warn"
[pagefile.metrics_filters]
value = "$service_name_template$.perfdata.$pagefile$.ifw_pagefile.used.value"
max = "$service_name_template$.perfdata.$pagefile$.ifw_pagefile.used.max"
crit = "$service_name_template$.perfdata.$pagefile$.ifw_pagefile.used.crit"
warn = "$service_name_template$.perfdata.$pagefile$.ifw_pagefile.used.warn"

[memory-percent.urlparams]
[pagefile.urlparams]
areaAlpha = "0.5"
areaMode = "first"
lineWidth = "2"
min = "0"
title = "Memory % used"
title = "Pagefile used $pagefile$"
yUnitSystem = "binary"

[memory-percent.functions]
value = "alias(color($metric$, '#1a7dd7'), 'Used (%)')"
crit = "alias(color($metric$, '#ff0000'), 'Crit (%)')"
warn = "alias(color($metric$, '#ff8d00'), 'Warn (%)')"
[pagefile.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)')"

0 comments on commit 581ebb6

Please sign in to comment.