httpcheck.conf 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # This is a fast-reacting no-notification alarm ideal for custom dashboards or badges
  2. template: httpcheck_web_service_up
  3. on: httpcheck.status
  4. class: Utilization
  5. type: Web Server
  6. component: HTTP endpoint
  7. lookup: average -1m unaligned percentage of success
  8. calc: ($this < 75) ? (0) : ($this)
  9. every: 5s
  10. units: up/down
  11. info: HTTP check endpoint ${label:url} liveness status
  12. to: silent
  13. template: httpcheck_web_service_bad_content
  14. on: httpcheck.status
  15. class: Workload
  16. type: Web Server
  17. component: HTTP endpoint
  18. lookup: average -5m unaligned percentage of bad_content
  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. summary: HTTP check for ${label:url} unexpected content
  25. info: Percentage of HTTP responses from ${label:url} with unexpected content in the last 5 minutes
  26. to: webmaster
  27. template: httpcheck_web_service_bad_status
  28. on: httpcheck.status
  29. class: Workload
  30. type: Web Server
  31. component: HTTP endpoint
  32. lookup: average -5m unaligned percentage of bad_status
  33. every: 10s
  34. units: %
  35. warn: $this >= 10 AND $this < 40
  36. crit: $this >= 40
  37. delay: down 5m multiplier 1.5 max 1h
  38. summary: HTTP check for ${label:url} unexpected status
  39. info: Percentage of HTTP responses from ${label:url} with unexpected status in the last 5 minutes
  40. to: webmaster
  41. template: httpcheck_web_service_timeouts
  42. on: httpcheck.status
  43. class: Latency
  44. type: Web Server
  45. component: HTTP endpoint
  46. lookup: average -5m unaligned percentage of timeout
  47. every: 10s
  48. units: %
  49. warn: $this >= 10 AND $this < 40
  50. crit: $this >= 40
  51. delay: down 5m multiplier 1.5 max 1h
  52. summary: HTTP check for ${label:url} timeouts
  53. info: Percentage of timed-out HTTP requests to ${label:url} in the last 5 minutes
  54. to: webmaster
  55. template: httpcheck_web_service_no_connection
  56. on: httpcheck.status
  57. class: Errors
  58. type: Other
  59. component: HTTP endpoint
  60. lookup: average -5m unaligned percentage of no_connection
  61. every: 10s
  62. units: %
  63. warn: $this >= 10 AND $this < 40
  64. crit: $this >= 40
  65. delay: down 5m multiplier 1.5 max 1h
  66. summary: HTTP check for ${label:url} failed requests
  67. info: Percentage of failed HTTP requests to ${label:url} in the last 5 minutes
  68. to: webmaster