Tag: Blank target border style title
1. Environmental Description:
Redhat 6.5
Zabbix 2.4.5
172.30.0.195
650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" wps791f.tmp "border=" 0 "alt=" wps791f.tmp "src=" http://s3.51cto.com/wyfs02/M02/76/FF/ Wkiom1zgts2z8ursaadhlbbdaje359.jpg "" 558 "height=" 285 "/>
2. Environment Readiness:
Yum Install pcre*
Yum Install openssl*
Yum-y Install Net-snmp-devel Curl-devel
Yum-y Install Automake autoconf libtool make
Yum-y Install gcc gcc-c++ glibc
Yum-y install libmcrypt-devel mhash-devel libxslt-devel \
Libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel \
Zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel \
ncurses Ncurses-devel Curl curl-devel e2fsprogs e2fsprogs-devel \
krb5 krb5-devel libidn libidn-devel OpenSSL openssl-devel
3. Install the configuration PHP 3.1 php download installation
wget http://cn2.php.net/distributions/php-5.5.25.tar.gz
Tar zxvf php-5.5.25.tar.gz
./configure--prefix=/usr/local/php-5.5.0--with-config-file-path=/usr/local/php-5.5.25/etc--with-bz2--with-curl --enable-ftp--enable-sockets--disable-ipv6--with-gd--with-jpeg-dir=/usr/local--with-png-dir=/usr/local-- With-freetype-dir=/usr/local--enable-gd-native-ttf--with-iconv-dir=/usr/local--enable-mbstring-- Enable-calendar--with-gettext--with-libxml-dir=/usr/local--with-zlib--with-pdo-mysql=mysqlnd--with-mysqli= Mysqlnd--with-mysql=mysqlnd--enable-dom--enable-xml--enable-fpm--with-libdir=lib64--enable-bcmath
Make && make install
3.2 Configuration of PHP configuration 3.2.1 php.ini:
Note the compile parameter location--with-config-file-path=/usr/local/php-5.5.5/etc
Copy the php.ini to the specified location
Cp/usr/local/php-5.5.0/php.ini/usr/local/php-5.5.0/etc/php.ini
Modify Parameters:
Vim/usr/local/php-5.5.0/etc/php.ini//Modify the following places
Date.timezone =asia/shanghai
Post_max_size =32m
Max_execution_time =300
Max_input_time =300
3.2.2 Start PHP-FMP
/usr/local/php-5.5.0/sbin/php-fpm
3.2.3 to solve the Nginx php-fpm does not log php error logging method
Modify the configuration in the php-fpm.conf without adding
Catch_workers_output = yes
Error_log =/data/logs/nginx/php-fpm.log
Modify the configuration in php.ini, no increase
Log_errors = On
Error_reporting=e_all&~e_notice
Error_log =/data/logs/nginx/php_errors.log
3.2.4 If the Bcmath module is not specified in the compile phase, it can be installed later, and the other modules are not installed in similar way
Cd/u01/soft/php-5.5.25/ext/bcmath
/usr/local/php-5.5.0/bin/phpize
./configure--with-php-config=/usr/local/php-5.5.0/bin/php-config
Make && make install
Vi/usr/local/php-5.5.0/etc/php.ini add
Extension=bcmath.so
4. Install the configuration Nginx 4.1 here to use the simple Yum installation Nginx
Yum Install Ngnix
4.2 Configuring Nginx
In the/etc/nginx/nginx.conf default configuration file, add the following code to the HTTP code block:
server{
Listen 88;
root/data/site/zabbix-server.com;
Index index.html index.htm index.php;
Location ~. *\. (PHP|PHP5)? $
{
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index.php;
Include fastcgi.conf;
}
Access_log/data/logs/nginx/zabbix-server.com.access.log;
}
4.3 Start nginx
Service Ngnix Start
5. Install the configuration MySQL 5.1 install MySQL
RPM-IVH mysql-server-advanced-5.6.22-1.el6.x86_64.rpm mysql-client-advanced-5.6.22-1.el6.x86_64.rpm mysql-devel-advanced-5.6.22-1.el6.x86_64.rpm
5.2 Changing the root password
After the installation, there will be a hint, the root default password is stored in which file, can be viewed.
More/root/.mysql_secret
Then use the default password to connect to MySQL and modify the current root password
Mysql> set Password=password (' abc123 ');
5.3 Creating the specified database and user
Mysql> CREATE database Zabbix character set UTF8;
Query OK, 1 row affected (0.06 sec)
Mysql> Grant all on zabbix.* to [e-mail protected] identified by ' Redhat ';
Query OK, 0 rows affected (0.05 sec)
6.Zabbix Service Installation Configuration 6.1 installation Zabbix
wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz
Tar zxvf zabbix-2.4.5.tar.gz
./configure--prefix=/usr/local/zabbix--enable-server--enable-proxy--enable-agent--with-mysql=/usr/bin/mysql_ Config--with-net-snmp--with-libcurl
Make && make install
6.2 Creating a MySQL database table structure using Zabbix sample SQL
[[email protected] mysql]# ls
Data.sql Images.sql Schema.sql
[Email protected] mysql]# pwd
/u01/soft/zabbix-2.4.5/database/mysql
[Email protected] mysql]# mysql-uzabbix-p ' Redhat ' Zabbix < Schema.sql
Warning:using a password on the command line interface can is insecure.
[Email protected] mysql]# mysql-uzabbix-p ' Redhat ' Zabbix < Images.sql
Warning:using a password on the command line interface can is insecure.
[Email protected] mysql]# mysql-uzabbix-p ' Redhat ' Zabbix < Data.sql
Warning:using a password on the command line interface can is insecure.
6.3 Modifying Services
[email protected] zabbix-2.4.5]# cat >>/etc/services <<eof
> Zabbix-agent 10050/tcp #ZabbixAgent
> zabbix-agent 10050/udp #Zabbix Agent
> Zabbix-trapper 10051/tcp #ZabbixTrapper
> Zabbix-trapper 10051/udp #Zabbix Trapper
> EOF
6.4 Modifying the Zabbix service database configuration file
# vim/usr/local/zabbix/etc/zabbix_server.conf//Modify the following content
Dbname=zabbix
Dbuser=zabbix
Dbpassword=redhat
Dbsocket=/tmp/mysql.sock
dbport=3306
6.5 Configuring Zabbix as a service
[email protected] zabbix-2.4.5]# CP misc/init.d/fedora/core/zabbix_server/etc/init.d/
[email protected] zabbix-2.4.5]# CP misc/init.d/fedora/core/zabbix_agentd/etc/init.d/
Modify/etc/init.d/zabbix_server, Zabbix_agentd to change the basedir to the actual Zabbix installation location, as we have here/usr/local/zabbix
Vim/etc/init.d/zabbix_server
Basedir=/usr/local/zabbix
6.6 Start Zabbix
Service Zabbix_server Start
Service Zabbix_agentd Start
6.7 Entering the Web interface configuration
htttp://172.30.0.195:88
650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" wps7930.tmp "border=" 0 "alt=" wps7930.tmp "src=" http://s3.51cto.com/wyfs02/M00/76/FF/ Wkiom1zgts6y-c5laaciajkccoe533.jpg "" 476 "height=" 307 "/>
650) this.width=650; "Style=" background-image:none; border-bottom:0px; border-left:0px; padding-left:0px; padding-right:0px; border-top:0px; border-right:0px; padding-top:0px "title=" wps7931.tmp "border=" 0 "alt=" wps7931.tmp "src=" http://s3.51cto.com/wyfs02/M01/76/FF/ Wkiom1zgttcdbbpyaab4ikxrez0616.jpg "" 475 "height=" 317 "/>
7.Zabbix Agent Installation Configuration 7.1 Agent configuration for Zabbix Server server
Vim/usr/local/zabbix-2.2.2/etc/zabbix_agentd.conf
server=127.0.0.1
serveractive=127.0.0.1
Hostname=zabbix Server
Both the server and the serveractive specify the IP address of the Zabbixserver, and the difference is that the former is passive and the latter is active.
You can restart the agent
/usr/local/zabbix-2.2.2/sbin/zabbix_agentd restart
7.2 Agent configuration for other servers 7.2.1 add Zabbix user
Useradd-s/sbin/nologin-d/dev/null Zabbix
Download and installation of 7.2.2 Agent
wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-agent-2.4.5-1.el6.x86_64.rpm
wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-2.4.5-1.el6.x86_64.rpm
RPM-IVH zabbix-*
7.2.3 Modifying agent configuration Files
Vi/etc/zabbix/zabbix_agentd.conf
server=172.30.0.195
Hostname=mongodb-test1
Attached: A simple way to modify the configuration:
Sed-i ' s/^server=.*$/server=172.30.0.195./g '/etc/zabbix/zabbix_agentd.conf
Sed-i ' s/^hostname=.*$/hostname= mongodb-test1/g '/etc/zabbix/zabbix_agentd.conf
7.2.4 Modifying the service configuration
cat>>/etc/services<
Zabbix_agent 10050/tcp
Zabbix_trap 10051/tcp
Eof
7.2.5 Start Agent
The agent default configuration file is/etc/zabbix/zabbix_agentd.conf, so it is generally not necessary to specify
/usr/sbin/zabbix_agentd
7.2.6 Check if the agent is successful (also need to see if host has a Z-green flag in Zabbix)
NETSTAT-UTLNP | grep Zabbix
/usr/local/zabbix/bin/zabbix_get-s172.30.0.233-p10050-k "Net.if.in[eth0]"
/usr/local/zabbix/bin/zabbix_get-s172.30.0.233-p10050-k "System.uptime"
Log file/var/log/za ...
Zabbix Installation configuration Process