summaryrefslogtreecommitdiffstats
path: root/templates/nwc-interface-usage.ini
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:21:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:21:16 +0000
commit2e582fe0b8b6a8e67982ddb84935db1bd3b401fe (patch)
treedd511b321f308264952cffb005a4288ea4e478e6 /templates/nwc-interface-usage.ini
parentInitial commit. (diff)
downloadicingaweb2-module-graphite-2e582fe0b8b6a8e67982ddb84935db1bd3b401fe.tar.xz
icingaweb2-module-graphite-2e582fe0b8b6a8e67982ddb84935db1bd3b401fe.zip
Adding upstream version 1.2.2.upstream/1.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'templates/nwc-interface-usage.ini')
-rw-r--r--templates/nwc-interface-usage.ini58
1 files changed, 58 insertions, 0 deletions
diff --git a/templates/nwc-interface-usage.ini b/templates/nwc-interface-usage.ini
new file mode 100644
index 0000000..8d9cf7a
--- /dev/null
+++ b/templates/nwc-interface-usage.ini
@@ -0,0 +1,58 @@
+[interface-traffic.graph]
+check_command = "interface-usage"
+
+[interface-traffic.metrics_filters]
+bpsin = "$service_name_template$.perfdata.$interface$_traffic_in.value"
+bpsmaxin = "$service_name_template$.perfdata.$interface$_traffic_in.max"
+bpscritin = "$service_name_template$.perfdata.$interface$_traffic_in.crit"
+bpswarnin = "$service_name_template$.perfdata.$interface$_traffic_in.warn"
+
+bpsout = "$service_name_template$.perfdata.$interface$_traffic_out.value"
+bpsmaxout = "$service_name_template$.perfdata.$interface$_traffic_out.max"
+bpscritout = "$service_name_template$.perfdata.$interface$_traffic_out.crit"
+bpswarnout = "$service_name_template$.perfdata.$interface$_traffic_out.warn"
+
+[interface-traffic.urlparams]
+min = "0"
+title = "$interface$ traffic"
+lineWidth = "2"
+yUnitSystem = "si"
+
+[interface-traffic.functions]
+bpsin = "alias(color($metric$, '#1a7dd7'), 'Traffic in (B/s)')"
+bpsmaxin = "alias(color($metric$, '#7d7f81'), 'Traffic in max (B/s)')"
+bpswarnin = "alias(color($metric$, '#ff8d00'), 'Traffic in warn (B/s)')"
+bpscritin = "alias(color($metric$, '#ff0000'), 'Traffic in crit (B/s)')"
+
+bpsout = "alias(color($metric$, '#0b3c68'), 'Traffic out (B/s)')"
+bpsmaxout = "alias(color($metric$, '#45008d'), 'Traffic out max (B/s)')"
+bpswarnout = "alias(color($metric$, '#ff8d00'), 'Traffic out warn (B/s)')"
+bpscritout = "alias(color($metric$, '#ff0000'), 'Traffic out crit (B/s)')"
+
+
+[interface-usage.graph]
+check_command = "interface-usage"
+
+[interface-usage.metrics_filters]
+usagein = "$service_name_template$.perfdata.$interface$_usage_in.value"
+usagecritin = "$service_name_template$.perfdata.$interface$_usage_in.crit"
+usagewarnin = "$service_name_template$.perfdata.$interface$_usage_in.warn"
+
+usageout = "$service_name_template$.perfdata.$interface$_usage_out.value"
+usagecritout = "$service_name_template$.perfdata.$interface$_usage_out.crit"
+usagewarnout = "$service_name_template$.perfdata.$interface$_usage_out.warn"
+
+[interface-usage.urlparams]
+min = "0"
+title = "$interface$ usage"
+lineWidth = "2"
+yUnitSystem = "none"
+
+[interface-usage.functions]
+usagein = "alias(color($metric$, '#1a7dd7'), 'Usage in (%)')"
+usagewarnin = "alias(color($metric$, '#ff8d00'), 'Usage in warn (%)')"
+usagecritin = "alias(color($metric$, '#ff0000'), 'Usage in crit (%)')"
+
+usageout = "alias(color($metric$, '#0b3c68'), 'Usage out (%)')"
+usagewarnout = "alias(color($metric$, '#ff8d00'), 'Usage out warn (%)')"
+usagecritout = "alias(color($metric$, '#ff0000'), 'Usage out crit (%)')"