ObjectiveIn the daily operation and maintenance work, will inevitably encounter such or such a failure, how to find fault in the first time, and timely locate the cause of the failure, to ensure that the business is not affected, I think this should be a good operation must master the skills. But the human can't control the change of the system in real time, so the monitoring system came into being, the monitoring is the eye of operation and maintenance, the operation and maintenance is a very e
other means, but all alarm methods need to set up and define the script implementation. Although both functions can be achieved, but Zabbix police-style settings are relatively cumbersome, need to be proficient in the use of program scripts.
Therefore, the monitoring treasure also integrates the mainstream of open source monitoring products, can cross Application Data association analysis, grading alarm.
Zabbix mail configuration, zabbix mailI. System and version
Operating System: centos7
Zabbix version: 3.2.5Ii. Install sendmail
Yum-y install sendmail
Systemctl enable sendmail
Systemctl start sendmail
1. if the error "My unqualified host name vim/etc/hosts xxx" is reported during startup. xxx. xxx. xxx hostname.com local name +. com because sendmail is running
Zabbix installation and deployment (Server)
Common system monitoring software in Linux includes Nagios, Cacti, Zabbix, and Monit. These open source software can help us better manage machines and discover them in the first time, and warn system maintenance personnel.
Today, I started to study Zabbix. The purpose of Zabbix
}": "XDB"}, {"{#DBUSER}": "Xs$null"},{"{#DBUSER}": "ZABBIX"}]} Get the data in JSON format, prove that the script is working properly, then we need to create Zabbix users, and then install agnetd (about this Part I do not introduce more, the previous blog wrote a lot. Then modify the Zabbix user's environment variables, edit the
monitoring system, in the use of large-scale environment, has surpassed the Zabbix, to solve the pain point of this user. However, the monitoring function of this system may not be as strong as Zabbix (after all, the ability to provide agent, SNMP, IPMI, JMX, WEB, SSH, TELNET, extended monitoring scripts, and customizable open source monitoring system is really
We probably know how to monitor the host, the main steps are designed to add the host, and add monitoring items for the host, here is the main item, and then on the basis of the item to draw on the item and the way to the screen to bring the different monitoring images to a page. Through the quick chapter we recognize that item monitoring is very important in Zabbix, and item monitoring is defined by key, and key is divided into system predefined key
=utf8_general_ci [[email protected] mysql-5.6.30]# make make installGroupadd MySQL
useradd-g mysql mysql
chown-r mysql:mysql/usr/local/mysql
CP support-files/mysql.server/ Etc/init.d/mysqld
chkconfig mysqld on
scripts/mysql_install_db--basedir=/usr/local/mysql--datadir=/usr/ Local/mysql/data--user=mysql6, compile and install php5.4 (compile and install PHP, this environment really, always error, can only be missing what to fill what)A, install the fo
Zabbix as long as the discovery function is turned on, this alarm will appear,650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/85/F8/wKioL1exPxeyYcw_AACDZp7PX-U776.png "title=" 1.png " alt= "Wkiol1expxeyycw_aacdzp7px-u776.png"/>The problem is to be optimized, the more simple and brutal way is to turn off the discovery function, embarrassing ~So what is the way to be embarrassed?Find Zabbix_server under the zabbix_server.conf, find the Startd
A description of the problem:Web monitoring is added to a host, and when the host is not removed from the Zabbix page, the Web monitoring data on the Zabbix page can still be received on the host computer. In fact, the host is unreachable after the Zabbix page should not see any monitoring data on this host, but the only self-hosted web monitoring can see the dat
Use the JSTAT-GC TOMCAT ID to reorder the data into the $tomcat file, looping throughBut jstat this command requires the same privileges as Tomcat to start the user Zabbix, you can start the zabbix-agent using the same user as the Tomcat startup user, or you can Visudo
[Root@iz62bxn7uuzz scripts]# Cat jstat.sh#!/bin/bash# ----------------------------------------
shell is opened with the Netcat (NC) command, and if your system is the Redhat/centos series, the NC can be downloaded via yum.Select "Administration", "Scripts", to create a script such as:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/32/wKioL1T5cdrC573JAALmIjFxlAw432.jpg "title=" Shell.png "alt=" Wkiol1t5cdrc573jaalmijfxlaw432.jpg "/>"Executeon" Select Zabbix Server, "Commands" in the inp
Monitor Nginx, mainly to monitor the concurrency number:1:nginx Compile Parameters:--prefix=/usr/local/nginx--with-http_stub_status_moduleZabbix Compile parameter view:/usr/local/nginx/sbin/nginx-vNginx version:nginx/1.8.1Built by GCC 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)Built with OpenSSL 1.0.1e-fips 2013TLS SNI Support EnabledConfigure arguments:--prefix=/usr/local/nginx--with-http_ssl_module--with-http_stub_status_module2:nginx Configuration New
Location/status {Allow 127.0.0.1;Den
Zabbix monitors the status of tcp connections
The Tcp connection status is crucial for our web servers, especially the concurrency ESTAB or the syn_recv value. If this value is large, we can determine whether it is under attack, or if the value of time_wait is relatively high, we should consider whether the kernel needs optimization. If the value of time_wait is too high, it will occupy too many ports. If the number of ports is small, the consequences
Edit nginx.conf FileAdd content inside the serverLocation/nginx-status {Stub_status on;Access_log off;}2.zabbix AGENTD Client ConfigurationEdit/usr/local/zabbix/etc/zabbix_agentd.confAdd the following at the end of the fileUnsafeuserparameters=1Userparameter=nginx.accepts,/usr/local/zabbix/scripts/nginx_status.sh accep
keys after you add Web monitoring, and automatically create the appropriate keys after you add Web monitoring, but select the appropriate hosts that have the Web definedSelect the expression in function to trigger the alarm when the returned status code is not equal to variable n, and the value of n is set to 200 belowExpression: If the last 4 consecutive Response_code values are not 200, the alarm is triggered{192.168.3.86:web.test.rspcode[3.86_http_status,3.86_http_status].last (0)}
Test, the
Description
Operating system: CentOS
IP Address: 192.168.21.127
Web environment: nginx+mysql+php
Zabbix version: Zabbix 2.2 LTS
Note: Linux installation Zabbix need to have lamp or LNMP operating environment
Installation article
First, create, import
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.