Zabbix Monitor Hadoop installation configuration

Source: Internet
Author: User

External Check
By actively invoking the custom script to obtain the monitoring data, the output of the script is the monitoring value of the monitoring item, which is more customizable. Because the afternoon here stepped on the pit, walked a lot of detours, so here to the configuration method to make a special note. Select External Chek When configuring the monitor item, and then specify run scripts and parameters in the key column. The following is the difference between the 1.8 and 2.0 versions in key configuration:
* In the 1.8 version of the format of the key is Scriptname[arg1 arg2 ...], parameters with spaces, Zabbix the actual implementation of the command is ScriptName server_hostname arg1 arg2, see here
* After 2.0, the format of the key is Scriptname[arg1, arg2 ...], the parameters are separated by commas, Zabbix the actual command is ScriptName arg1 arg2 ...

So, a 1.8 of the template poured into 2.0 after the Zabbix server is problematic, this requires special attention.

Trapper
Trapper is also a zabbix way to get monitoring data. We know the common way to have AGENT,SNMP and JMX, these monitoring methods are Zabbix server initiative to ask the equipment to be monitored, and trapper is passively waiting for the monitoring equipment to report the data (through Zabbix_sender) up, Then extract what you want from the data in the report.

Note If the monitor side provides an interface for external access to its running data (not too secure), you can use the external check invoke script to remotely fetch the data and then zabbix_sender the obtained data to Zabbix Server in trapper form. This will ensure that the client is 0 configured and can obtain any data that you want to monitor. The logical diagram is as follows:

Zabbix server--> external check-->script--> monitored device
script--> zabbix_sender--> ZABBX Server

Configuration process
1. Download the templates and plug-in scripts needed to monitor Hadoop, link here
2. In the local, through the browser to import two templates to Zabbix, note that two templates have duplicate monitoring items, if you need to monitor the same device need to delete duplicate Hadoop Version and Hadoop status two monitoring entries
3. On the server side, put the plug-in script into the Zabbix server's designated directory, specifically to see Zabbix_ server.conf externalscripts This configuration item, generally if the default for compiling the installation should be in the/usr/local/zabbix/share/zabbix/externalscripts directory, You can also modify the configuration file to specify it yourself, here are two points to note: 1 If your bash is installed under/bin, then all scripts should modify the first behavior #!/bin/sh; 2 Ensure that the script has executable permissions, and that the script execution user (that is, the running user of Zabbix server) has all the operational rights, such as writing files.
4. Modify zabbix_server.conf to remove comments from externalscripts this line, restart Zabbix_server

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.