blob: 7753aa1845dc9dcdded99efed5dfe7b1d531e9fa (
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
|
# -----------------------------------------------------------------------------
# make sure we collect values for each interface
template: interface_last_collected_secs
on: net.net
calc: $now - $last_collected_t
units: seconds ago
every: 10s
warn: $this > (($status >= $WARNING) ? (0) : ( 5 * $update_every))
crit: $this > (($status == $CRITICAL) ? (0) : (60 * $update_every))
delay: down 5m multiplier 1.5 max 1h
info: number of seconds since the last successful data collection
to: sysadmin
# -----------------------------------------------------------------------------
# check if an interface is dropping packets
# the alarm is checked every 1 minute
# and examines the last hour of data
template: 1hour_packet_drops
on: net.drops
lookup: sum -1h unaligned absolute
units: packets
every: 1m
warn: $this > 0
delay: down 30m multiplier 1.5 max 1h
info: interface dropped packets in the last hour
to: sysadmin
# -----------------------------------------------------------------------------
# check if an interface is having FIFO
# buffer errors
# the alarm is checked every 1 minute
# and examines the last hour of data
template: 1hour_fifo_errors
on: net.fifo
lookup: sum -1h unaligned absolute
units: errors
every: 1m
warn: $this > 0
delay: down 30m multiplier 1.5 max 1h
info: interface fifo errors in the last hour
to: sysadmin
|