]> arthur.barton.de Git - netdata.git/blob - conf.d/health.d/net.conf
Merge pull request #1172 from ktsaou/master
[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     calc: $now - $last_collected_t
7    units: seconds ago
8    every: 10s
9     warn: $this > (($status >= $WARNING)  ? (0) : ( 5 * $update_every))
10     crit: $this > (($status == $CRITICAL) ? (0) : (60 * $update_every))
11    delay: down 5m multiplier 1.5 max 1h
12     info: number of seconds since the last successful data collection
13       to: sysadmin
14
15
16 # -----------------------------------------------------------------------------
17
18 # check if an interface is dropping packets
19 # the alarm is checked every 1 minute
20 # and examines the last hour of data
21
22 template: 1hour_packet_drops
23       on: net.drops
24   lookup: sum -1h unaligned absolute
25    units: packets
26    every: 1m
27     warn: $this > 0
28    delay: down 30m multiplier 1.5 max 1h
29     info: interface dropped packets in the last hour
30       to: sysadmin
31
32
33 # -----------------------------------------------------------------------------
34
35 # check if an interface is having FIFO
36 # buffer errors
37 # the alarm is checked every 1 minute
38 # and examines the last hour of data
39
40 template: 1hour_fifo_errors
41       on: net.fifo
42   lookup: sum -1h unaligned absolute
43    units: errors
44    every: 1m
45     warn: $this > 0
46    delay: down 30m multiplier 1.5 max 1h
47     info: interface fifo errors in the last hour
48       to: sysadmin