]> arthur.barton.de Git - netdata.git/blob - conf.d/health.d/net.conf
cac0bbbfbe941741e495389c32a813194420bad2
[netdata.git] / conf.d / health.d / net.conf
1 # -----------------------------------------------------------------------------
2 # make sure we collect values for each interface
3
4 template: interface_last_collected_secs
5       on: net.net
6 families: *
7     calc: $now - $last_collected_t
8    units: seconds ago
9    every: 10s
10     warn: $this > (($status >= $WARNING)  ? ($update_every) : ( 5 * $update_every))
11     crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
12    delay: down 5m multiplier 1.5 max 1h
13     info: number of seconds since the last successful data collection
14       to: sysadmin
15
16
17 # -----------------------------------------------------------------------------
18 # dropped packets
19
20 # check if an interface is dropping packets
21 # the alarm is checked every 1 minute
22 # and examines the last 10 minutes of data
23
24 template: inbound_packets_dropped
25       on: net.drops
26 families: *
27   lookup: sum -10m unaligned absolute of inbound
28    units: packets
29    every: 1m
30     warn: $this > 0
31    delay: down 1h multiplier 1.5 max 2h
32     info: interface inbound dropped packets in the last 10 minutes
33       to: sysadmin
34
35 template: outbound_packets_dropped
36       on: net.drops
37 families: *
38   lookup: sum -10m unaligned absolute of outbound
39    units: packets
40    every: 1m
41     warn: $this > 0
42    delay: down 1h multiplier 1.5 max 2h
43     info: interface outbound dropped packets in the last 10 minutes
44       to: sysadmin
45
46 template: inbound_packets_dropped_ratio
47       on: net.packets
48 families: *
49   lookup: sum -10m unaligned absolute of received
50     calc: (($inbound_packets_dropped != nan AND $this > 0) ? ($inbound_packets_dropped * 100 / $this) : (0))
51    units: %
52    every: 1m
53     warn: $this > 0.5
54     crit: $this > 3
55    delay: down 1h multiplier 1.5 max 2h
56     info: the ratio of inbound dropped packets vs the total number of received packets of the network interface, during the last 10 minutes
57       to: sysadmin
58
59 template: outbound_packets_dropped_ratio
60       on: net.packets
61 families: *
62   lookup: sum -10m unaligned absolute of sent
63     calc: (($outbound_packets_dropped != nan AND $this > 0) ? ($outbound_packets_dropped * 100 / $this) : (0))
64    units: %
65    every: 1m
66     warn: $this > 0.5
67     crit: $this > 3
68    delay: down 1h multiplier 1.5 max 2h
69     info: the ratio of outbound dropped packets vs the total number of sent packets of the network interface, during the last 10 minutes
70       to: sysadmin
71
72
73 # -----------------------------------------------------------------------------
74 # FIFO errors
75
76 # check if an interface is having FIFO
77 # buffer errors
78 # the alarm is checked every 1 minute
79 # and examines the last 10 minutes of data
80
81 template: 10min_fifo_errors
82       on: net.fifo
83 families: *
84   lookup: sum -10m unaligned absolute
85    units: errors
86    every: 1m
87     warn: $this > 0
88    delay: down 1h multiplier 1.5 max 2h
89     info: interface fifo errors in the last 10 minutes
90       to: sysadmin
91
92
93 # -----------------------------------------------------------------------------
94 # check for packet storms
95
96 # 1. calculate the rate packets are received in 1m: 1m_received_packets_rate
97 # 2. do the same for the last 10s
98 # 3. raise an alarm if the later is 10x or 20x the first
99 # we assume the minimum packet storm should at least have
100 # 10000 packets/s, average of the last 10 seconds
101
102 template: 1m_received_packets_rate
103       on: net.packets
104 families: *
105   lookup: average -1m of received
106    units: packets
107    every: 10s
108     info: the average number of packets received during the last minute
109
110 template: 10s_received_packets_storm
111       on: net.packets
112 families: *
113   lookup: average -10s of received
114     calc: $this * 100 / (($1m_received_packets_rate < 1000)?(1000):($1m_received_packets_rate))
115    every: 10s
116    units: %
117    warn: $this > (($status >= $WARNING)?(200):(1000))
118    crit: $this > (($status >= $WARNING)?(1000):(2000))
119 options: no-clear-notification
120    info: the % of the rate of received packets in the last 10 seconds, compared to the rate of the last minute
121      to: sysadmin
122