Because of the need to monitor company-specific services, writing scripts to get the information that each process consumes system resources, using Zabbix to capture that data for the underlying monitoring of a particular process.My main need to monitor the program is as follows:Nginx Redis MySQL Tomcat Sentinel MongoDB openfire Kafka zookeeper Twemproxy MycatFirst, write the monitoring script on the agent
CENTOS installation and deployment zabbix and centos deployment zabbix
Http://www.showerlee.com/archives/13 ()
The rhce email has been sent, so I am free to update the previous documents.
The content I updated is mainly to add my current understanding to the configuration and tell you some ideas and ideas at that time. Instead of posting a lot of commands as many documents on the Internet, many friends who
fastcgi_param script_filename $ document_root $ fastcgi_script_name; // change/scripts in fastcgi_param to $ document_root35 rows include fastcgi_params; 36 rows}
(8) Compile the PHP test page to test whether PHP is successfully built!
[[emailprotected] ~]# vim /usr/share/nginx/html/info.php
(9) test whether PHP is successfully built by accessing the Web interface.
(10) Compile the MySQL test page.
[[Email protected] ~] # Vim/usr/share/nginx/html/in
/etc/Muttrc
Set sendmail = "/usr/bin/msmtp" # path of your msmtp command
Set use_from = yes
Set realname = "cl0554@126.com"
Set editor = "vim"
Test email
Echo "hello zabbix" | mutt-s "zabbix test" chenlong0554@qq.com
[Zabbix configuration]
Modify the path of zabbix script
Sudo vim/etc/
In my previous blog, I set up the zabbix monitoring service in the lamp architecture. In this article, I will build a zabbix service in lnmp. The operation steps are slightly more complex than before, however, lnmp is slightly more detailed, and the general process is similar.
Lab environment:Stkaiti link: https://pan.baidu.com/s/1d6VpWcuQMQuaww4r_KZnNAExtracted code: 90v8Procedure1. Establish lnmp1 instal
Experimental system: CentOS 6.6_x86_64Lab Prerequisites: Prepare the build environment in advance, firewall and SELinux are offExperiment Description: There are 4 hosts in this experiment, IP and role assignment such as topology: mariadb software used in the test, http://pan.baidu.com/s/1bnnYiMrExperimental topology: First, the preparatory work1. Modify the hostname and HOSTS file to the following table: Description: MySQL is Zabbix data sto
How to install zabbix and zabbix on centos7How To Install Zabbix Server On CentOS 7By SKShare on Facebook Tweet on Twitter
About Zabbix
ZabbixIs an enterprise-class open source distributed monitoring solution that can be used to monitor and track performance and availability of network servers, devices and other I
Download the windows agent pressure package and decompress it to the C: \ zabbix directory. Then, create a log folder under the C: \ zabbix directory.1. Configuration File
Modify C: \ zabbix \ conf \ zabbix_agentd.win.conf
LogFile=C:\zabbix\log\zabbix_agentd.logServer=192.168.1.9#ServerActive=192.168.1.9Hostname=192.1
download Percona Zabbix Mysql-plugin, link in this: https://www.percona.com/downloads/percona-monitoring-plugins/1.1.5/ percona-zabbix-templates-1.1.5-1.noarch.rpmUse after downloadRPM-IVH percona-zabbix-templates-1.1.5-1.noarch.rpminstallation, after installation will produce two directories, each directory has two files, the detailed results are as follows:[Em
Zabbix introduction, zabbix
Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the WEB interface.
Zabbix consists of zabbix-server and zabbix-ag
, the first is to write a script to get nginx information, then add the key information in the configuration, and then restart the agent service.
Write Nginx monitoring script, remember the path, the later configuration needs to use.
!! Note The script permissions issue, the agent runs the user to be able to execute.
>># mkdir-p/usr/local/zabbix-agent/scripts>># cd/usr/local/
2. Write your own script template for OS monitoring Write yourself a shell script that detects the OS:[Email protected] bin]# cd/usr/local/zabbix/scripts/[[email protected] scripts]# lsMem_free mem_total nginx_monitor.sh os.monitor.sh tcp_monitor.sh user_num[email protected] scripts]# cat os.monitor.sh#!/bin/bash#####
This article takes the CentOS 6.7 x86_64 system as an example, the environment is the new system which just completes.Zabbix-server-End Environmental monitoring[Email protected] ~]# Cat/etc/redhat-releasecentos release 6.7 (Final) [[email protected] ~]# uname-r2.6.32-573.8.1.el6 . X86_64[[email protected] ~]# uname-mx86_64[[email protected] ~]# Hostnamelinux-node1.example.com[[email protected] ~]# Ifconfig | Awk-f ' [inet addr:|]+ ' Nr==2{print $} ' 10.19.1.19[[email protected] ~]# yum repolist
Linux-Zabbix email alert settings, linux-zabbix alertSystem Environment: Ubuntu 16.04 on Zabbix Server
Install sendmail
sudo apt install sendmail
Test email sending
Echo "text! "| Mail-s title XXX@qq.com
After successful installation, continue to install the email server. Heirloom-mailx in Ubuntu
Apt-get install heirloom-mailx# The yum install mailx // CentOS is
.png-135.5kb "Title=" "/>installation steps: View the above link can also be installedWe installed it on the zabbix-server because there was a MySQL[[emailprotected]web]#yuminstall http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm[[email protected]web]#yuminstallpercona-zabbix-templatesphpphp-mysql-y# The Percona plugin is going to get MySQL parameters via PHP, s
zabbix_agentd.conf##########"EchoElseEchoEcho "######### #zabbix_agentd. conf is not exit##########"EchoExit2fiif[-D/ETC/ZABBIX/ZABBIX_AGENTD.D]; ThenCP-R $PACKAGE _dir/yuwang.conf/etc/zabbix/Zabbix_agentd.dElseEcho "##########/etc/zabbix/zabbix_agentd.d is not exist##########"EchoExit3fiEcho "######### #begin Move Scripts
The new company monitoring with the Zabbix, which used to Zabbix-proxy, originally did not try to get, now first installed to see in order to follow up the use of inspection.Zabbix-proxy is a monitoring proxy server, which collects the monitored data, stores it in the buffer, the time can be set by the configuration file, and then transferred to Zabbix_server; the monitoring agent needs a separate database
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.