fping.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. template: fping_last_collected_secs
  2. families: *
  3. on: fping.latency
  4. class: Latency
  5. type: Other
  6. component: Network
  7. calc: $now - $last_collected_t
  8. units: seconds ago
  9. every: 10s
  10. warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
  11. crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
  12. delay: down 5m multiplier 1.5 max 1h
  13. info: number of seconds since the last successful data collection
  14. to: sysadmin
  15. template: fping_host_reachable
  16. families: *
  17. on: fping.latency
  18. class: Errors
  19. type: Other
  20. component: Network
  21. calc: $average != nan
  22. units: up/down
  23. every: 10s
  24. crit: $this == 0
  25. delay: down 30m multiplier 1.5 max 2h
  26. info: reachability status of the network host (0: unreachable, 1: reachable)
  27. to: sysadmin
  28. template: fping_host_latency
  29. families: *
  30. on: fping.latency
  31. class: Latency
  32. type: Other
  33. component: Network
  34. lookup: average -10s unaligned of average
  35. units: ms
  36. every: 10s
  37. green: 500
  38. red: 1000
  39. warn: $this > $green OR $max > $red
  40. crit: $this > $red
  41. delay: down 30m multiplier 1.5 max 2h
  42. info: average latency to the network host over the last 10 seconds
  43. to: sysadmin
  44. template: fping_packet_loss
  45. families: *
  46. on: fping.quality
  47. class: Errors
  48. type: System
  49. component: Network
  50. lookup: average -10m unaligned of returned
  51. calc: 100 - $this
  52. green: 1
  53. red: 10
  54. units: %
  55. every: 10s
  56. warn: $this > $green
  57. crit: $this > $red
  58. delay: down 30m multiplier 1.5 max 2h
  59. info: packet loss ratio to the network host over the last 10 minutes
  60. to: sysadmin