summaryrefslogtreecommitdiffstats
path: root/templates/interfacetable.ini
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfacetable.ini')
-rw-r--r--templates/interfacetable.ini52
1 files changed, 52 insertions, 0 deletions
diff --git a/templates/interfacetable.ini b/templates/interfacetable.ini
new file mode 100644
index 0000000..359d201
--- /dev/null
+++ b/templates/interfacetable.ini
@@ -0,0 +1,52 @@
+[interfacetable-traffic.graph]
+check_command = "interfacetable"
+
+[interfacetable-traffic.metrics_filters]
+bpsin = "$service_name_template$.perfdata.If_$interface$.check_interface_table_port.BpsIn.value"
+bpsout = "$service_name_template$.perfdata.If_$interface$.check_interface_table_port.BpsOut.value"
+
+[interfacetable-traffic.urlparams]
+min = "0"
+title = "Interface $interface$"
+lineWidth = "2"
+yUnitSystem = "si"
+
+[interfacetable-traffic.functions]
+bpsin = "alias(color($metric$, '#1a7dd7'), 'Traffic in (B/s)')"
+bpsout = "alias(color($metric$, '#0b3c68'), 'Traffic out (B/s)')"
+
+
+[interfacetable-discard.graph]
+check_command = "interfacetable"
+
+[interfacetable-discard.metrics_filters]
+ppsindiscard = "$service_name_template$.perfdata.If_$interface$.check_interface_table_port.PpsInDiscard.value"
+ppsoutdiscard = "$service_name_template$.perfdata.If_$interface$.check_interface_table_port.PpsOutDiscard.value"
+
+[interfacetable-discard.urlparams]
+min = "0"
+title = "Interface $interface$"
+lineWidth = "2"
+yUnitSystem = "si"
+
+[interfacetable-discard.functions]
+ppsindiscard = "alias(color($metric$, '#edb017'), 'Discard in (B/s)')"
+ppsoutdiscard = "alias(color($metric$, '#ad7d05'), 'Discard out (B/s)')"
+
+
+[interfacetable-error.graph]
+check_command = "interfacetable"
+
+[interfacetable-error.metrics_filters]
+ppsinerr = "$service_name_template$.perfdata.If_$interface$.check_interface_table_port.PpsInErr.value"
+ppsouterr = "$service_name_template$.perfdata.If_$interface$.check_interface_table_port.PpsOutErr.value"
+
+[interfacetable-error.urlparams]
+min = "0"
+title = "Interface $interface$"
+lineWidth = "2"
+yUnitSystem = "si"
+
+[interfacetable-error.functions]
+ppsinerr = "alias(color($metric$, '#ff5566'), 'Error in (B/s)')"
+ppsouterr = "alias(color($metric$, '#a80000'), 'Error out (B/s)')"