# ----------------------------------------------------------------------------- # 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) ? ($update_every) : ( 5 * $update_every)) crit: $this > (($status == $CRITICAL) ? ($update_every) : (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