ping.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. summary: Host ${label:host} ping status
  14. info: Network host ${label:host} reachability status
  15. to: sysadmin
  16. template: ping_packet_loss
  17. on: ping.host_packet_loss
  18. class: Errors
  19. type: Other
  20. component: Network
  21. lookup: average -10m unaligned of loss
  22. green: 5
  23. red: 10
  24. units: %
  25. every: 10s
  26. warn: $this > $green
  27. crit: $this > $red
  28. delay: down 30m multiplier 1.5 max 2h
  29. summary: Host ${label:host} ping packet loss
  30. info: Packet loss percentage to the network host ${label:host} over the last 10 minutes
  31. to: sysadmin
  32. template: ping_host_latency
  33. on: ping.host_rtt
  34. class: Latency
  35. type: Other
  36. component: Network
  37. lookup: average -10s unaligned of avg
  38. units: ms
  39. every: 10s
  40. green: 500
  41. red: 1000
  42. warn: $this > $green OR $max > $red
  43. crit: $this > $red
  44. delay: down 30m multiplier 1.5 max 2h
  45. summary: Host ${label:host} ping latency
  46. info: Average latency to the network host ${label:host} over the last 10 seconds
  47. to: sysadmin