vsphere.conf 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. # -----------------------------------------------Virtual Machine--------------------------------------------------------
  3. template: vsphere_vm_cpu_utilization
  4. on: vsphere.vm_cpu_utilization
  5. class: Utilization
  6. type: Virtual Machine
  7. component: CPU
  8. hosts: *
  9. lookup: average -10m unaligned match-names of used
  10. units: %
  11. every: 20s
  12. warn: $this > (($status >= $WARNING) ? (75) : (85))
  13. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  14. delay: down 15m multiplier 1.5 max 1h
  15. summary: vSphere CPU utilization for VM ${label:vm}
  16. info: CPU utilization VM ${label:vm} host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
  17. to: silent
  18. template: vsphere_vm_mem_utilization
  19. on: vsphere.vm_mem_utilization
  20. class: Utilization
  21. type: Virtual Machine
  22. component: Memory
  23. hosts: *
  24. calc: $used
  25. units: %
  26. every: 20s
  27. warn: $this > (($status >= $WARNING) ? (80) : (90))
  28. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  29. delay: down 15m multiplier 1.5 max 1h
  30. summary: vSphere memory utilization for VM ${label:vm}
  31. info: Memory utilization VM ${label:vm} host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
  32. to: silent
  33. # -----------------------------------------------ESXI host--------------------------------------------------------------
  34. template: vsphere_host_cpu_utilization
  35. on: vsphere.host_cpu_utilization
  36. class: Utilization
  37. type: Virtual Machine
  38. component: CPU
  39. hosts: *
  40. lookup: average -10m unaligned match-names of used
  41. units: %
  42. every: 20s
  43. warn: $this > (($status >= $WARNING) ? (75) : (85))
  44. crit: $this > (($status == $CRITICAL) ? (85) : (95))
  45. delay: down 15m multiplier 1.5 max 1h
  46. summary: vSphere ESXi CPU utilization for host ${label:host}
  47. info: CPU utilization ESXi host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
  48. to: sysadmin
  49. template: vsphere_host_mem_utilization
  50. on: vsphere.host_mem_utilization
  51. class: Utilization
  52. type: Virtual Machine
  53. component: Memory
  54. hosts: *
  55. calc: $used
  56. units: %
  57. every: 20s
  58. warn: $this > (($status >= $WARNING) ? (80) : (90))
  59. crit: $this > (($status == $CRITICAL) ? (90) : (98))
  60. delay: down 15m multiplier 1.5 max 1h
  61. summary: vSphere ESXi Ram utilization for host ${label:host}
  62. info: Memory utilization ESXi host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
  63. to: sysadmin