Zabbix Learning Note 4-Creating an external monitoring item

Source: Internet
Author: User

Previously learned how to use Zabbix's own monitoring items to monitor

Zabbix a lot of types of monitoring items, here is how to create an external monitoring items, external monitoring is a Zabbix server through the script to obtain information on the node, the node is not required to start the monitoring of AGENTD is also can be monitored


If you do not want to pass any parameters, as follows:

Script[] or
Script

Zabbix server will then define the directory in which to execute the external script (configuration extenalscripts in Zabbix server), and the script will run with the running user of Zabbix. Please note that permissions and only commands in the specified directory can be executed.
The Zabbix script uses the standard output (full output but removes the blank at the end), and the standard error and exit codes are discarded
Note: Please do not overuse that external detection, which can severely degrade the Zabbix system performance


Example

Execute the check_http.sh with parameter script "-H

Script:

Ps-ef|grep nginx|grep-v Grep|wc-l

Key values:

check_oracle.sh["-H", "{HOST. CONN} "]

Which machine is to be monitored and which one to set up the monitoring

Zabbix will be executed:

check_oracle.SH "-H" "192.168.1.4"

-------------------------------------------------------------------------------

Simple check

simple Checks is typically used to check for services that are not installed by the remote agent or client

Use simple checks, The monitored client does not need to install   Agent client, Zabbix server directly uses simple checks to receipt data, which is basically used to detect whether a port on a remote server is listening.
The following is simple checks:
net.tcp.service[ftp,,155]
Net.tcp.service[http]
net.tcp.service.perf[http,,8080]

Using basic detection to monitor VMware servers, you need to fill in the user and password fields, and other servers can ignore


This article from "Eight Miles" blog, declined reprint!

Zabbix Learning Note 4-Creating an external monitoring item

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.