vcsa.conf 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # Overall system health:
  2. # - 0: all components are healthy.
  3. # - 1: one or more components might become overloaded soon.
  4. # - 2: one or more components in the appliance might be degraded.
  5. # - 3: one or more components might be in an unusable status and the appliance might become unresponsive soon.
  6. # - 4: no health data is available.
  7. template: vcsa_system_health
  8. on: vcsa.system_health
  9. class: Errors
  10. type: Virtual Machine
  11. component: VMware vCenter
  12. lookup: max -10s unaligned of system
  13. units: status
  14. every: 10s
  15. warn: ($this == 1) || ($this == 2)
  16. crit: $this == 3
  17. delay: down 1m multiplier 1.5 max 1h
  18. info: overall system health status \
  19. (-1: unknown, 0: green, 1: yellow, 2: orange, 3: red, 4: grey)
  20. to: sysadmin
  21. # Components health:
  22. # - 0: healthy.
  23. # - 1: healthy, but may have some problems.
  24. # - 2: degraded, and may have serious problems.
  25. # - 3: unavailable, or will stop functioning soon.
  26. # - 4: no health data is available.
  27. template: vcsa_swap_health
  28. on: vcsa.components_health
  29. class: Errors
  30. type: Virtual Machine
  31. component: VMware vCenter
  32. lookup: max -10s unaligned of swap
  33. units: status
  34. every: 10s
  35. warn: $this == 1
  36. crit: ($this == 2) || ($this == 3)
  37. delay: down 1m multiplier 1.5 max 1h
  38. info: swap health status \
  39. (-1: unknown, 0: green, 1: yellow, 2: orange, 3: red, 4: grey)
  40. to: sysadmin
  41. template: vcsa_storage_health
  42. on: vcsa.components_health
  43. class: Errors
  44. type: Virtual Machine
  45. component: VMware vCenter
  46. lookup: max -10s unaligned of storage
  47. units: status
  48. every: 10s
  49. warn: $this == 1
  50. crit: ($this == 2) || ($this == 3)
  51. delay: down 1m multiplier 1.5 max 1h
  52. info: storage health status \
  53. (-1: unknown, 0: green, 1: yellow, 2: orange, 3: red, 4: grey)
  54. to: sysadmin
  55. template: vcsa_mem_health
  56. on: vcsa.components_health
  57. class: Errors
  58. type: Virtual Machine
  59. component: VMware vCenter
  60. lookup: max -10s unaligned of mem
  61. units: status
  62. every: 10s
  63. warn: $this == 1
  64. crit: ($this == 2) || ($this == 3)
  65. delay: down 1m multiplier 1.5 max 1h
  66. info: memory health status \
  67. (-1: unknown, 0: green, 1: yellow, 2: orange, 3: red, 4: grey)
  68. to: sysadmin
  69. template: vcsa_load_health
  70. on: vcsa.components_health
  71. class: Utilization
  72. type: Virtual Machine
  73. component: VMware vCenter
  74. lookup: max -10s unaligned of load
  75. units: status
  76. every: 10s
  77. warn: $this == 1
  78. crit: ($this == 2) || ($this == 3)
  79. delay: down 1m multiplier 1.5 max 1h
  80. info: load health status \
  81. (-1: unknown, 0: green, 1: yellow, 2: orange, 3: red, 4: grey)
  82. to: sysadmin
  83. template: vcsa_database_storage_health
  84. on: vcsa.components_health
  85. class: Errors
  86. type: Virtual Machine
  87. component: VMware vCenter
  88. lookup: max -10s unaligned of database_storage
  89. units: status
  90. every: 10s
  91. warn: $this == 1
  92. crit: ($this == 2) || ($this == 3)
  93. delay: down 1m multiplier 1.5 max 1h
  94. info: database storage health status \
  95. (-1: unknown, 0: green, 1: yellow, 2: orange, 3: red, 4: grey)
  96. to: sysadmin
  97. template: vcsa_applmgmt_health
  98. on: vcsa.components_health
  99. class: Errors
  100. type: Virtual Machine
  101. component: VMware vCenter
  102. lookup: max -10s unaligned of applmgmt
  103. units: status
  104. every: 10s
  105. warn: $this == 1
  106. crit: ($this == 2) || ($this == 3)
  107. delay: down 1m multiplier 1.5 max 1h
  108. info: applmgmt health status \
  109. (-1: unknown, 0: green, 1: yellow, 2: orange, 3: red, 4: grey)
  110. to: sysadmin
  111. # Software updates health:
  112. # - 0: no updates available.
  113. # - 2: non-security updates are available.
  114. # - 3: security updates are available.
  115. # - 4: an error retrieving information on software updates.
  116. template: vcsa_software_updates_health
  117. on: vcsa.software_updates_health
  118. class: Errors
  119. type: Virtual Machine
  120. component: VMware vCenter
  121. lookup: max -10s unaligned of software_packages
  122. units: status
  123. every: 10s
  124. warn: $this == 4
  125. crit: $this == 3
  126. delay: down 1m multiplier 1.5 max 1h
  127. info: software updates availability status \
  128. (-1: unknown, 0: green, 2: orange, 3: red, 4: grey)
  129. to: sysadmin