--- /dev/null
+
+# make sure mysql is running
+
+template: mysql_last_collected_secs
+ on: mysql.queries
+ calc: $now - $last_collected_t
+ every: 10s
+ warn: $this > ( 5 * $update_every)
+ crit: $this > (60 * $update_every)
+ units: seconds ago
+ info: number of seconds since the last successful data collection
+ to: dba
on: net.drops
lookup: sum -30m unaligned absolute
every: 1m
- crit: $this > 0
+ warn: $this > 0
units: packets
info: dropped packets in the last 30 minutes
to: sysadmin
on: net.fifo
lookup: sum -30m unaligned absolute
every: 1m
- crit: $this > 0
+ warn: $this > 0
units: errors
info: network interface fifo errors in the last 30 minutes
to: sysadmin