"VC Required" Zabbix perfect monitoring of VMware ESXi hard drives

Source: Internet
Author: User
Tags snmp

recently, because of an esxi hard drive burst (the hard disk allocation method is all used in thin distribution mode) causes the entire node of the production machine to pause, the reason is no longer said. Then this low problem actually happened in my body, too sweet, so the bread decided to re-monitor ESXi! Background: Because the company used to be directly with the machine heap, after our countless P2V have the current environment, so the machine's hard disk configuration is not too regular.
The first reflection is definitely open ESXi SNMP then OID value, wrong, wrong, opened the SNMP configuration of the community name, started the service, in the Zabbix look at the time found hehe .... Not take the hard drive data, and then the entire OID information pulled out, found that the real SNMP does not provide hard disk data, well, SNMP can not be used, agent can not be installed. Then we come to ask Google, and then a search found that Hey Zabbix official provide the method hey, and then provide the address of the VC, to a read-only user can monitor, but found that there is no node of hard disk data, is drunk!
and then found the low level discovery This function (this is the next day to start with Zabbix), OK, I am also a healthy limbs, four of the mind developed youth, think of a way to solve it! And then there's the following configuration procedure, first a template is built:
650) this.width=650; "id=" aimg_365 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 061635zpdegvz1hpe0d3v1.png "class=" Zoom "width=" "height=" 545 "alt=" 061635zpdegvz1hpe0d3v1.png "/>
OK, the template has been built, we will build a "applications":
650) this.width=650; "id=" aimg_366 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 061731uup55gbw7wr4573d.png "class=" Zoom "width=" "alt=" 061731uup55gbw7wr4573d.png "/>"
built "Applications", then we began to build discovery rules, this is a good function:
650) this.width=650; "id=" aimg_367 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 061830dxtuw0z0i9iwzv5v.png "class=" Zoom "width=" "alt=" 061830dxtuw0z0i9iwzv5v.png "/>"
Then there are three places to pay attention when building discovery rules (key,type,filters):
650) this.width=650; "id=" aimg_374 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 062647ldskufxdrmhxxrm1.png "class=" Zoom "width=" "alt=" 062647ldskufxdrmhxxrm1.png "/>"
650) this.width=650; "id=" aimg_375 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 062647j55hk8i4c9xd8igc.png "class=" Zoom "width=" "alt=" 062647j55hk8i4c9xd8igc.png "/>"
then after discovery rules was built, we started to set up item Prototpyes, with two points to note (Type,key):
650) this.width=650; "id=" aimg_376 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 062753tmnn5wjjw6ma52wf.png "class=" Zoom "width=" "alt=" 062753tmnn5wjjw6ma52wf.png "/>"
Graph Prototpyes Settings here will not do more than repeat, cut a map, we look at the settings:
650) this.width=650; "id=" aimg_377 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 062926glyzyyjyqxrdwxz4.png "class=" Zoom "width=" "alt=" 062926glyzyyjyqxrdwxz4.png "/>"
then we said the front end, and began to say the following about the ESXi settings, in fact, my implementation is the idea is to capture esxi data, and then encapsulate a Zabbix_sender class, the data to Zabbix sender, which has two scripts in the attachment, the function is as follows:
get_disk_info.py: Obtain disk data from VC and generate the corresponding format (because the low level discovery required data is JSON) where to set more places, such as the VC address, user name, password and Zabbix information.
zabbix_send.py: The primary is to encapsulate the data and send it to the server.
650) this.width=650; "id=" aimg_379 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 063629o84p6b8y2uya6xmz.png "class=" Zoom "width=" "alt=" 063629o84p6b8y2uya6xmz.png "/>"
the effect is as follows:
650) this.width=650; "id=" aimg_380 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 063921btyjhz9s97xfe89e.png "class=" Zoom "width=" "alt=" 063921btyjhz9s97xfe89e.png "/>"
650) this.width=650; "id=" aimg_381 "src=" https://mianbao.cn.com/data/attachment/forum/201606/17/ 064005ab5buee979n579uw.png "class=" Zoom "width=" "alt=" 064005ab5buee979n579uw.png "/>"

This article from the "Bread" blog, reproduced please contact the author!

"VC Required" Zabbix perfect monitoring of VMware ESXi hard drives

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.