# How to Monitor VCenter With Zabbix

အားလုံးပဲ မင်္ဂလာပါ။ ဒီနေ့ ပြောပြပေးသွားပေးမဲ့အကြောင်းအရာက ကျွန်တော်တို့ရဲ့ Vcenter ကို Zabbix အသုံးပြုပြီး Monitoring ဘယ်လိုလုပ်ရမလဲဆိုတာ ပြောပြပေးသွားမှာပဲဖြစ်ပါတယ်။

ပထမဦးဆုံး Zabbix ကို [Download & Install](https://www.zabbix.com/download) လုပ်ထားရပါမယ်။

Install လုပ်ပြီးရင်တော့ ကျွန်တော်တို့ စပြီး Config ချလို့ရပါပြီ။

## **Configure Zabbix server**

1. Open Zabbix server configuration file
    

```plaintext
vi /etc/zabbix/zabbix_server.conf
```

2. Change [StartVMwaeCollectors](https://www.zabbix.com/documentation/current/en/manual/appendix/config/zabbix_server#startvmwarecollectors) parameter
    
    ```plaintext
    ### Option: StartVMwareCollectors
           #       Number of pre-forked vmware collector instances.
           #
           # Mandatory: no
           # Range: 0-250
           # Default:
           # StartVMwareCollectors=0
           
           StartVMwareCollectors=2
    ```
    
3. Restart Zabbix Server.
    
    ```plaintext
    systemctl restart zabbix-server
    ```
    

---

## **Configure Zabbix Frontend**

1. Login to Zabbix
    
2. Create Host in Zabbix.
    
    `In the Host name field, enter a host name (for example, "VMware environment").`
    
    `In the Templates field, type or select the "VMware FQDN" (or "VMware") template.`
    
    `In the Host groups field, type or select a host group (for example, a new host group "VMware").`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726132986363/939f86be-527b-4512-8108-d9083292a7d9.png align="center")
    
    * `In the Macros tab, set the following host macros:`
        
        `{$VMWARE.URL} - VMware service (vCenter or ESXi hypervisor) SDK URL (`[`https://servername/sdk`](https://servername/sdk)`)`
        
        `{$VMWARE.USERNAME} - VMware service user name`
        
        `{$VMWARE.PASSWORD} - VMware service {$VMWARE.USERNAME} user password`
        
    * ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726133163564/eb07e01b-0903-440b-aa26-59db87258910.png align="center")
        
3. Click Add to create host.
    

---

## **View collected metrics**

Zabbix is already monitoring your VCenter.

To View Create Host, navigate to [Data Collection » Hosts](https://www.zabbix.com/documentation/current/en/manual/web_interface/frontend_sections/data_collection/hosts)

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726133308143/4506498f-faf6-41cb-9685-9b527a39dad3.png align="center")

To View Collected Metrics, navigate to Monitoring » Hosts

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726133363182/20528cdd-667a-4cd8-a99e-8a4109c628b8.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726133398873/f0872347-cd42-4458-9a13-af5b726763a6.png align="center")

---

အခုဆိုရင်တော့ Zabbix ကို အသုံးပြုပြီး ကိုယ့်ရဲ့ VCenter ကို Monitor လုပ်လို့ရပြီပဲဖြစ်ပါတယ်။

အဆင်ပြေကျမယ်လို့ မျှော်လင့်ပါတယ် ။ အားလုံးပဲ အချိန်ပေးပြီး ဖတ်ရှုပေးတဲ့အတွက်လဲ ကျေးဇူးတင်ပါတယ် ခင်ဗျ ။

Author By @[PoneMyat](@ponemyat110)
