portcheck.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. summary: Portcheck status for ${label:host}:${label:port}
  12. info: TCP host ${label:host} port ${label:port} liveness status
  13. to: silent
  14. template: portcheck_connection_timeouts
  15. on: portcheck.status
  16. class: Errors
  17. type: Other
  18. component: TCP endpoint
  19. lookup: average -5m unaligned percentage of timeout
  20. every: 10s
  21. units: %
  22. warn: $this >= 10 AND $this < 40
  23. crit: $this >= 40
  24. delay: down 5m multiplier 1.5 max 1h
  25. summary: Portcheck timeouts for ${label:host}:${label:port}
  26. info: Percentage of timed-out TCP connections to host ${label:host} port ${label:port} in the last 5 minutes
  27. to: sysadmin
  28. template: portcheck_connection_fails
  29. on: portcheck.status
  30. class: Errors
  31. type: Other
  32. component: TCP endpoint
  33. lookup: average -5m unaligned percentage of no_connection,failed
  34. every: 10s
  35. units: %
  36. warn: $this >= 10 AND $this < 40
  37. crit: $this >= 40
  38. delay: down 5m multiplier 1.5 max 1h
  39. summary: Portcheck fails for ${label:host}:${label:port}
  40. info: Percentage of failed TCP connections to host ${label:host} port ${label:port} in the last 5 minutes
  41. to: sysadmin