vsphere.conf 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. # -----------------------------------------------VM Specific------------------------------------------------------------
  3. # Memory
  4. template: vsphere_vm_mem_usage
  5. on: vsphere.vm_mem_usage_percentage
  6. class: Utilization
  7. type: Virtual Machine
  8. component: Memory
  9. hosts: *
  10. calc: $used
  11. units: %
  12. every: 20s
  13. warn: $this > (($status >= $WARNING) ? (80) : (90))
  14. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  15. delay: down 15m multiplier 1.5 max 1h
  16. info: virtual machine memory utilization
  17. # -----------------------------------------------HOST Specific----------------------------------------------------------
  18. # Memory
  19. template: vsphere_host_mem_usage
  20. on: vsphere.host_mem_usage_percentage
  21. class: Utilization
  22. type: Virtual Machine
  23. component: Memory
  24. hosts: *
  25. calc: $used
  26. units: %
  27. every: 20s
  28. warn: $this > (($status >= $WARNING) ? (80) : (90))
  29. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  30. delay: down 15m multiplier 1.5 max 1h
  31. info: host memory utilization
  32. # Network errors
  33. template: vsphere_inbound_packets_errors
  34. on: vsphere.net_errors_total
  35. class: Errors
  36. type: Virtual Machine
  37. component: Network
  38. hosts: *
  39. lookup: sum -10m unaligned absolute match-names of rx
  40. units: packets
  41. every: 1m
  42. info: number of inbound errors for the network interface in the last 10 minutes
  43. template: vsphere_outbound_packets_errors
  44. on: vsphere.net_errors_total
  45. class: Errors
  46. type: Virtual Machine
  47. component: Network
  48. hosts: *
  49. lookup: sum -10m unaligned absolute match-names of tx
  50. units: packets
  51. every: 1m
  52. info: number of outbound errors for the network interface in the last 10 minutes
  53. # Network errors ratio
  54. template: vsphere_inbound_packets_errors_ratio
  55. on: vsphere.net_packets_total
  56. class: Errors
  57. type: Virtual Machine
  58. component: Network
  59. hosts: *
  60. lookup: sum -10m unaligned absolute match-names of rx
  61. calc: (($vsphere_inbound_packets_errors != nan AND $this > 1000) ? ($vsphere_inbound_packets_errors * 100 / $this) : (0))
  62. units: %
  63. every: 1m
  64. warn: $this >= 2
  65. delay: up 1m down 1h multiplier 1.5 max 2h
  66. info: ratio of inbound errors for the network interface over the last 10 minutes
  67. to: sysadmin
  68. template: vsphere_outbound_packets_errors_ratio
  69. on: vsphere.net_packets_total
  70. class: Errors
  71. type: Virtual Machine
  72. component: Network
  73. hosts: *
  74. lookup: sum -10m unaligned absolute match-names of tx
  75. calc: (($vsphere_outbound_packets_errors != nan AND $this > 1000) ? ($vsphere_outbound_packets_errors * 100 / $this) : (0))
  76. units: %
  77. every: 1m
  78. warn: $this >= 2
  79. delay: up 1m down 1h multiplier 1.5 max 2h
  80. info: ratio of outbound errors for the network interface over the last 10 minutes
  81. to: sysadmin
  82. # -----------------------------------------------Common-------------------------------------------------------------------
  83. # CPU
  84. template: vsphere_cpu_usage
  85. on: vsphere.cpu_usage_total
  86. class: Utilization
  87. type: Virtual Machine
  88. component: CPU
  89. hosts: *
  90. lookup: average -10m unaligned match-names of used
  91. units: %
  92. every: 20s
  93. warn: $this > (($status >= $WARNING) ? (75) : (85))
  94. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  95. delay: down 15m multiplier 1.5 max 1h
  96. info: average CPU utilization
  97. to: sysadmin
  98. # Network drops
  99. template: vsphere_inbound_packets_dropped
  100. on: vsphere.net_drops_total
  101. class: Errors
  102. type: Virtual Machine
  103. component: Network
  104. hosts: *
  105. lookup: sum -10m unaligned absolute match-names of rx
  106. units: packets
  107. every: 1m
  108. info: number of inbound dropped packets for the network interface in the last 10 minutes
  109. template: vsphere_outbound_packets_dropped
  110. on: vsphere.net_drops_total
  111. class: Errors
  112. type: Virtual Machine
  113. component: Network
  114. hosts: *
  115. lookup: sum -10m unaligned absolute match-names of tx
  116. units: packets
  117. every: 1m
  118. info: number of outbound dropped packets for the network interface in the last 10 minutes
  119. # Network drops ratio
  120. template: vsphere_inbound_packets_dropped_ratio
  121. on: vsphere.net_packets_total
  122. class: Errors
  123. type: Virtual Machine
  124. component: Network
  125. hosts: *
  126. lookup: sum -10m unaligned absolute match-names of rx
  127. calc: (($vsphere_inbound_packets_dropped != nan AND $this > 1000) ? ($vsphere_inbound_packets_dropped * 100 / $this) : (0))
  128. units: %
  129. every: 1m
  130. warn: $this >= 2
  131. delay: up 1m down 1h multiplier 1.5 max 2h
  132. info: ratio of inbound dropped packets for the network interface over the last 10 minutes
  133. to: sysadmin
  134. template: vsphere_outbound_packets_dropped_ratio
  135. on: vsphere.net_packets_total
  136. class: Errors
  137. type: Virtual Machine
  138. component: Network
  139. hosts: *
  140. lookup: sum -10m unaligned absolute match-names of tx
  141. calc: (($vsphere_outbound_packets_dropped != nan AND $this > 1000) ? ($vsphere_outbound_packets_dropped * 100 / $this) : (0))
  142. units: %
  143. every: 1m
  144. warn: $this >= 2
  145. delay: up 1m down 1h multiplier 1.5 max 2h
  146. info: ratio of outbound dropped packets for the network interface over the last 10 minutes
  147. to: sysadmin