ping.conf 1.3 KB

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