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