1 # -----------------------------------------------------------------------------
2 # make sure we collect values for each interface
4 template: interface_last_collected_secs
6 calc: $now - $last_collected_t
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
16 # -----------------------------------------------------------------------------
18 # check if an interface is dropping packets
19 # the alarm is checked every 1 minute
20 # and examines the last hour of data
22 template: 1hour_packet_drops
24 lookup: sum -1h unaligned absolute
28 delay: down 30m multiplier 1.5 max 1h
29 info: interface dropped packets in the last hour
33 # -----------------------------------------------------------------------------
35 # check if an interface is having FIFO
37 # the alarm is checked every 1 minute
38 # and examines the last hour of data
40 template: 1hour_fifo_errors
42 lookup: sum -1h unaligned absolute
46 delay: down 30m multiplier 1.5 max 1h
47 info: interface fifo errors in the last hour