summaryrefslogtreecommitdiffstats
path: root/templates/nwc-interface-usage.ini
blob: 8d9cf7a9482332bc98e44954e00ea681b689f041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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 (%)')"