configuration → templates → discovery column. Discovery rules include (1) artifacts that identify the necessary entities (for example, file systems or network Interfaces) and (2) monitoring items that should be created based on the value of the item, triggers, and prototypes of the graphicsA project that discovers the necessary entities is like a regular item seen elsewhere: The server queries the value of
I. Environment Introduction
Zabbix depends on the LAMP (Apache, Mysql, and PhP) environment. Apache can also be replaced by Nginx. To save time, there are many one-click installation scripts on the Internet. download and execute the installation.
System: rhel 5.5 X86_64Software: nginx-0.8.53Mysql-5.1.56Php-5.2.17Zabbix 2.0.3
LNMP one-key: http://bbs.linuxtone.org/docs/autoinstall/lemp_auto_v1.0.6.tar.gz
Zabbix
Function: The data storage function of user test Zabbixmigrating databasesZabbix Service SideStop Zabbix-server #停止zabbix服务 So data is no longer generatedScp-r/var/lib/mysql/[Email protected]:/data/zabbix/#移植数据库下文件到远程主机数据库下Database Host SideVim/etc/my.cnfDatadir=/data/zabbix #修改数据库存放地点Mkdir-p/data/zabbixRm-rf/data/
/client-cert.pem ';
$mysql _ssl_ca = '/etc/pki/tls/certs/mysql/ca-cert.pem ';
$mysql _connection_timeout = 5;
# Normal Users Here we should create a dedicated monitor, as I am here to test the environment. It's not a waste of time.Restart AgentdSystemctl Restart Zabbix-agent.serviceTest:[Email protected] ~]# zabbix_get-s 192.168.56.21-k mysql.open-files
51Import of templates:Download the Percona template and upload it to the
Tags: ZabbixZabbix monitoring MySQL master-slave database in the footsteps of the user name and password will appear the following error " warning:using A password on theCommandLine interface can insecure",The error is due to the MySQL 5.6 version of the password security policy, the previous version can be used in the command line with the password will be forced to error, so when using Zabbix monitoring MySQL, will be due to receiveZabbix Client Log
)----Create Templates (Creating a template)Create an Autodiscover ruleCreate an app Set"Create a monitoring item prototype based on the Autodiscover rule base"Ps: The key value here must correspond with itCreate trigger types, set multi-gradient alarm detection,Set different periodic alarms. 3,10,15 min Three different fault levels"Create Image Prototypes"So far, the entire template has been built to completion ~ as shown inWe will link this template
--------------------- Overview ----------------------
ZabbixIs a highly integrated enterpriseOpen SourceNetwork Monitoring solution, similar to CACI and Nagios, provides distributed monitoring and a centralized web management interface. If the Monitored object supports SNMP or runs the zabbix_agents agent, the official website of zabbix is http://www.zabbix.com/software which can be freely downloaded and used.Supplement:SNMP protocolSimple Network M
($STR);Echo $json->data;?>Test execution PHP code to get the number 22Restarting the Zabbix clientKillall-9 Zabbix_agentd/usr/local/zabbix-agent/sbin/zabbix_agentd-c /usr/local/zabbix-agent/etc/zabbix_agentd.confEnter Zabbix server, use Zabbix_getZabbix_get parameter Description:-S--host: Specifies the client host nam
hosts, which have been added to these three hosts4. Use custom parameters to monitor the data and rate of Nginx service on the scheduler.In order to monitor nginx status, add location monitor nginx status value in the server of Nginx main configuration file.[Email protected] ~]# vim/etc/nginx/nginx.confLocation/status {Stub_status on;}[Email protected] ~]# systemctl restart Nginx.service[Email protected] ~]# Curl 172.16.1.99/statusActive connections:1Server accepts handled requests1 1 1reading:
Based on the environment configured in the previous article, the next step is to explain how remote commands are performed on the Zabbix agent.Remote commands are subject to some restrictions:(1) The agent must define the Sudu rule for the Zabbix user to execute the remote command:(2) Agent that does not support active mode(3) proxy mode not supported(4) command length must not exceed 255 characters(5) You
Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the Web interface.
Zabbix can monitor various network parameters to ensure secure operation of server systems. It also provides a flexible notification mechanism for system administrators to quickly locate and solve various problems.
Z
get the data.Second, monitoring memory parametersExample: Under the/etc/zabbix/zabbix_agentd.d/directory of the monitored server node2, create a os.conf file that defines the value to get the memory[Email protected] ~]# Vim/etc/zabbix/zabbix_agentd.d/os.confuserparameter=os.memory.used,free-m | awk '/^mem/{print $} ' [[email protected] ~]#/etc/init.d/zabbix-agen
Calling the Zabbix API using Python#!/usr/bin/env python#Version = 3.6.1#__auth__ = ' Warren 'ImportJSON fromUrllibImportrequest, Parsezabbix_url='Http://192.168.22.22/zabbix'Zabbix_username="Admin"Zabbix_password="123456"#define the host information to be added in list formhostlist=["192.168.22.111","192.168.22.112"]#Traverse host list defines the host group ID and template ID to add forHostinchHostlist:url="{}/api_jsonrpc.php". Format (zabbix_url) h
Recently configured Zabbix distributed monitoring, using the proxy method, after the configuration is completed, the server side of the Web interface to add the host, using proxy mode for monitoring.The normal client configuration is as follows and can be monitored normallyVim zabbix_agentd.confLogfile=/tmp/zabbix_agentd.logserver=192.168.111.172 # Enter the IP address of the zabbix_proxyserveractive=192.168.111.172hostname=192.168.111.190the zabbix_a
Due to the use of proxy distributed monitoring, it is necessary to install Java_getway on the proxy side. That is, when compiling, add--enable-java
Modify Zabbix_java related optionsGo to the directory below for seeting.sh script editing; start the./startup.sh to see if Port 10052 is startedlisten_ip = "0.0.0.0" Listen_port = 10052 Pid_file = "/tmp/zabbix_java.pid"start_pollers = 5
Modify the proxy configuration file and the server configuration fileJavagateway =127.0.0.1 Javagatewayport =
/zabbix_agent/etc/Zabbix_agentd.conflogfile=/tmp/Zabbix_agentd.log # Specifying log path Server=121.42.11.220# Zabbix Server address in passive mode # startagents=0# Disable Passive mode (disable the agent will not listen to any address, port) serveractive=121.42.11.220# Zabbix Server address in active mode hostname=auto Rserver54.64# Machine identifier (the host name displayed by the Web interface) Hostmet
Zabbix server configuration file parameters in detailAlertscriptspathDefault value:/usr/local/share/zabbix/alertscriptsDescription: Alarm Script Directory
AllowrootDefault: 0 Description: Whether to allow Root startup, 0: Not allowed, 1: Allow, by default she will use the Zabbix user to start the Zabbix process,
mysql_stats_slave [3306, Slave_ SQL _Running] command to obtain data indicates no problem. The following is my test result
4. mysql authorization
GRANT PROCESS,REPLICATION CLIENT ON *.* TO 'zabbix'@'localhost' identified BY 'zabbix';
Flush privileges;
5. restart the zabbix service.
ps -ef|grep zabbix
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.