SNMP enable trên ESXi
Để giám sát các hoạt động của các ESXi host server chúng ta có thể enable tính năng SNMP trên các ESXi host. Để Enable các tính năng này chúng ta vào phần cấu hình và enable tính năng này lên.



Hiện tại service SNMP trên ESXi host này đang bị stop bây giờ chúng ta sẽ tiến hành Start service này lên





Nhưng khi start service SNMP này lên thì mắc lỗi Call “HostServiceSystem.Start” for object “serviceSystem-29” on vCenter Server”


Để sửa lỗi này chúng ta cần tiến hành SSH vào ESXi host nên chúng ta cần Start SSH trên ESXi host này lên





Sau khi Start xong service SSH chúng ta sẽ SSH vào ESXi Host này




Backup file cấu hình snmp.xml ra trước khi chúng ta chỉnh sửa nó




Sau đó các bạn vào edit file snmp.xml bằng vi

# vi /etc/vmware/snmp.xml
Copy nội dung sau vào file cấu hình snmp.xml
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<config>
<snmpSettings>
<enable>true</enable>
<port>161</port>
<syscontact></syscontact>
<syslocation></syslocation>
<EnvEventSource>indications</EnvEventSource>
<communities>public</communities>
<loglevel>info</loglevel>
<authProtocol></authProtocol>
<privProtocol></privProtocol>
</snmpSettings>
</config>



Save lại file cấu hình snmp.xml và start lại service snmpd thành công