diff --git a/icingaweb-graphite-template/portage_age.ini b/icingaweb-graphite-template/portage_age.ini new file mode 100644 index 0000000..694d90b --- /dev/null +++ b/icingaweb-graphite-template/portage_age.ini @@ -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')" +