| 1 | # you can disable an alarm notification by setting the 'to' line to: silent |
| 2 | |
| 3 | template: ping_host_reachable |
| 4 | on: ping.host_packet_loss |
| 5 | class: Errors |
| 6 | type: Other |
| 7 | component: Network |
| 8 | lookup: average -30s unaligned of loss |
| 9 | calc: ($this == nan) ? (nan) : ($this < 100) |
| 10 | units: up/down |
| 11 | every: 10s |
| 12 | crit: $this == 0 |
| 13 | delay: down 30m multiplier 1.5 max 2h |
| 14 | summary: Host ${label:host} ping status |
| 15 | info: Network host ${label:host} reachability status |
| 16 | to: sysadmin |
| 17 | |
| 18 | template: ping_packet_loss |
| 19 | on: ping.host_packet_loss |
| 20 | class: Errors |
| 21 | type: Other |
| 22 | component: Network |
| 23 | lookup: average -10m unaligned of loss |
| 24 | green: 5 |
| 25 | red: 10 |
| 26 | units: % |
| 27 | every: 10s |
| 28 | warn: $this > $green |
| 29 | crit: $this > $red |
| 30 | delay: down 30m multiplier 1.5 max 2h |
| 31 | summary: Host ${label:host} ping packet loss |
| 32 | info: Packet loss percentage to the network host ${label:host} over the last 10 minutes |
| 33 | to: sysadmin |
| 34 | |
| 35 | template: ping_host_latency |
| 36 | on: ping.host_rtt |
| 37 | class: Latency |
| 38 | type: Other |
| 39 | component: Network |
| 40 | lookup: average -10s unaligned of avg |
| 41 | units: ms |
| 42 | every: 10s |
| 43 | green: 500 |
| 44 | red: 1000 |
| 45 | warn: $this > $green OR $max > $red |
| 46 | crit: $this > $red |
| 47 | delay: down 30m multiplier 1.5 max 2h |
| 48 | summary: Host ${label:host} ping latency |
| 49 | info: Average latency to the network host ${label:host} over the last 10 seconds |
| 50 | to: sysadmin |