portcheck.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This is a fast-reacting no-notification alarm ideal for custom dashboards or badges
  2. template: portcheck_service_reachable
  3. families: *
  4. on: portcheck.status
  5. class: Workload
  6. type: Other
  7. component: TCP endpoint
  8. lookup: average -1m unaligned percentage of success
  9. calc: ($this < 75) ? (0) : ($this)
  10. every: 5s
  11. units: up/down
  12. info: average ratio of successful connections over the last minute (at least 75%)
  13. to: silent
  14. template: portcheck_connection_timeouts
  15. families: *
  16. on: portcheck.status
  17. class: Errors
  18. type: Other
  19. component: TCP endpoint
  20. lookup: average -5m unaligned percentage of timeout
  21. every: 10s
  22. units: %
  23. warn: $this >= 10 AND $this < 40
  24. crit: $this >= 40
  25. delay: down 5m multiplier 1.5 max 1h
  26. info: average ratio of timeouts over the last 5 minutes
  27. to: sysadmin
  28. template: portcheck_connection_fails
  29. families: *
  30. on: portcheck.status
  31. class: Errors
  32. type: Other
  33. component: TCP endpoint
  34. lookup: average -5m unaligned percentage of no_connection,failed
  35. every: 10s
  36. units: %
  37. warn: $this >= 10 AND $this < 40
  38. crit: $this >= 40
  39. delay: down 5m multiplier 1.5 max 1h
  40. info: average ratio of failed connections over the last 5 minutes
  41. to: sysadmin