master
conf 94 lines 3.45 KB
Raw
1
2 # you can disable an alarm notification by setting the 'to' line to: silent
3
4 # -----------------------------------------------Virtual Machine--------------------------------------------------------
5
6 template: vsphere_vm_cpu_utilization
7 on: vsphere.vm_cpu_utilization
8 class: Utilization
9 type: Virtual Machine
10 component: CPU
11 lookup: average -10m unaligned match-names of used
12 units: %
13 every: 20s
14 warn: $this > (($status >= $WARNING) ? (75) : (85))
15 crit: $this > (($status == $CRITICAL) ? (85) : (95))
16 delay: down 15m multiplier 1.5 max 1h
17 summary: vSphere CPU utilization for VM ${label:vm}
18 info: CPU utilization VM ${label:vm} host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
19 to: silent
20
21 template: vsphere_vm_mem_utilization
22 on: vsphere.vm_mem_utilization
23 class: Utilization
24 type: Virtual Machine
25 component: Memory
26 calc: $used
27 units: %
28 every: 20s
29 warn: $this > (($status >= $WARNING) ? (80) : (90))
30 crit: $this > (($status == $CRITICAL) ? (90) : (98))
31 delay: down 15m multiplier 1.5 max 1h
32 summary: vSphere memory utilization for VM ${label:vm}
33 info: Memory utilization VM ${label:vm} host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
34 to: silent
35
36 template: vsphere_vm_snapshot_chain_depth
37 on: vsphere.vm_snapshot_max_chain_depth
38 class: Errors
39 type: Virtual Machine
40 component: Storage
41 calc: $depth
42 units: snapshots
43 every: 20s
44 warn: $this > 3
45 delay: down 15m multiplier 1.5 max 1h
46 summary: vSphere snapshot chain depth for VM ${label:vm}
47 info: Snapshot max chain depth for VM ${label:vm} host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}; zero means no snapshots
48 to: sysadmin
49
50 template: vsphere_vm_snapshot_age
51 on: vsphere.vm_snapshot_max_age
52 class: Errors
53 type: Virtual Machine
54 component: Storage
55 calc: $age
56 units: seconds
57 every: 20s
58 crit: $this > 86400
59 delay: down 15m multiplier 1.5 max 1h
60 summary: vSphere oldest snapshot age for VM ${label:vm}
61 info: Oldest snapshot age for VM ${label:vm} host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}; zero means no snapshots
62 to: sysadmin
63
64 # -----------------------------------------------ESXI host--------------------------------------------------------------
65
66 template: vsphere_host_cpu_utilization
67 on: vsphere.host_cpu_utilization
68 class: Utilization
69 type: System
70 component: CPU
71 lookup: average -10m unaligned match-names of used
72 units: %
73 every: 20s
74 warn: $this > (($status >= $WARNING) ? (75) : (85))
75 crit: $this > (($status == $CRITICAL) ? (85) : (95))
76 delay: down 15m multiplier 1.5 max 1h
77 summary: vSphere ESXi CPU utilization for host ${label:host}
78 info: CPU utilization ESXi host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
79 to: sysadmin
80
81 template: vsphere_host_mem_utilization
82 on: vsphere.host_mem_utilization
83 class: Utilization
84 type: System
85 component: Memory
86 calc: $used
87 units: %
88 every: 20s
89 warn: $this > (($status >= $WARNING) ? (80) : (90))
90 crit: $this > (($status == $CRITICAL) ? (90) : (98))
91 delay: down 15m multiplier 1.5 max 1h
92 summary: vSphere ESXi memory utilization for host ${label:host}
93 info: Memory utilization ESXi host ${label:host} cluster ${label:cluster} datacenter ${label:datacenter}
94 to: sysadmin