diff --git a/icingaweb-graphite-template/openrc.ini b/icingaweb-graphite-template/openrc.ini new file mode 100644 index 0000000..25c324f --- /dev/null +++ b/icingaweb-graphite-template/openrc.ini @@ -0,0 +1,21 @@ +[openrc.ini.graph] +check_command = "openrc" + +[openrc.ini.metrics_filters] +started = "$service_name_template$.perfdata.count_started.value" +stopped = "$service_name_template$.perfdata.count_stopped.value" +crashed = "$service_name_template$.perfdata.count_crashed.value" + +[openrc.ini.urlparams] +areaAlpha = "0.5" +areaMode = "all" +lineWidth = "2" +min = "0" +title = "OpenRC Service States" +yUnitSystem = "si" + +[openrc.ini.functions] +started = "legendValue(alias(color(keepLastValue($metric$), '#76B26D'), 'started'), 'last', 'max', 'avg', 'min', 'si')" +stopped = "legendValue(alias(color(keepLastValue($metric$), '#FFA500'), 'stopped'), 'last', 'max', 'avg', 'min', 'si')" +crashed = "legendValue(alias(color(keepLastValue($metric$), '#ff0000'), 'crashed'), 'last', 'max', 'avg', 'min', 'si')" +