Skip to content

Commit

Permalink
check_portage_age.pl: add icingaweb2-module-graphite template
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fischl <[email protected]>
  • Loading branch information
antonfischl1980 committed May 11, 2022
1 parent 2041213 commit efa870a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions icingaweb-graphite-template/portage_age.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[portage_age.graph]
check_command = "portage_age"

[portage_age.metrics_filters]
value = "$service_name_template$.perfdata.last_sync.value"
warn = "$service_name_template$.perfdata.last_sync.warn"
crit = "$service_name_template$.perfdata.last_sync.crit"

[portage_age.urlparams]
areaAlpha = "0.5"
areaMode = "first"
lineWidth = "2"
min = "0"
title = "Last Sync"
yUnitSystem = "sec"

[portage_age.functions]
value = "legendValue(alias(color(keepLastValue($metric$), '#1a7dd7'), 'seconds'), 'last', 'max', 'avg', 'min', 'si')"
warn = "legendValue(alias(color(keepLastValue($metric$), '#FFA500'), 'Warning'), 'last', 'si')"
crit = "legendValue(alias(color(keepLastValue($metric$), '#ff0000'), 'Critical'), 'last', 'si')"

0 comments on commit efa870a

Please sign in to comment.