portcheck.conf 1.3 KB

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