Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Apr 5, 2024
1 parent 5e0d57c commit d844ba7
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
20 changes: 20 additions & 0 deletions templates/cpu_windows_powershell_framework.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 (%)')"
22 changes: 22 additions & 0 deletions templates/disk_windows_powershell_framework.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
25 changes: 25 additions & 0 deletions templates/memory_windows_powershell_framework.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

0 comments on commit d844ba7

Please sign in to comment.