当前位置:网站首页>RedHat 6.2 configuring ZABBIX
RedHat 6.2 configuring ZABBIX
2022-07-03 17:04:00 【Brother Xing plays with the clouds】
Zabbix The server End installation
1. Build local YUM Source .
# yum -y install httpd php php-MySQL mysql-server mysql-client curl curl-devel net-snmp net-snmp-devel perl-DBI php-gd php-xml php-bcmath zlib-devel mysql-devel glibc-devel gcc automake libidn-devel openssl-devel net-snmp-devel rpm-devel OpenIPMI-devel php-mbstring
2. Add users [[email protected] src]# useradd zabbix [[email protected] src]# passwd zabbix
3. To configure zabbix Of MYSQL database #service mysqld start [[email protected] src]# mysql -u root -p
mysql> create database zabbix; Query OK, 1 row affected (0.02 sec) mysql> grant all on zabbix.* to [email protected] identified by 'zabbix'; Query OK, 0 rows affected (0.08 sec) mysql> quit
Decompressed zabbix The source package #tar zxvf zabbix-1.8.13.tar.gz #cd zabbix-1.8.13 #mysql -u root zabbix < create/schema/mysql.sql #mysql -u root zabbix < create/data/data.sql #mysql -u root zabbix < create/data/images_mysql.sql
4. install #./configure -prefix=/opt/zabbix --enable-server --with-mysql --with-net-snmp --with-jabber=/usr/local/ --with-libcurl --with-openipmi --enable-agent
May report jabber Related errors solve : install iksemel. #wget http://iksemel.googlecode.com/files/iksemel-1.4.tar.gz #tar zxvf iksemel-1.4.tar.gz #cd iksemel-1.4 #./configure #make #make install
Re execution #./configure -prefix=/opt/zabbix --enable-server --with-mysql --with-net-snmp --with-jabber=/usr/local/ --with-libcurl --with-openipmi --enable-agent
#make install
If the installation is successful, there will be a prompt
5. modify /etc/services file # cat >> /etc/services << EOF zabbix-trapper 10051/tcp Zabbix Trapper zabbix-trapper 10051/udp Zabbix Trapper EOF
6. To configure zabbix #cd zabbix-1.8.13 6.1 #cp misc/init.d/RedHat/zabbix_server_ctl /etc/init.d/zabbix_server # mkdir /etc/zabbix # cp misc/conf/* /etc/zabbix/ # vi /etc/zabbix/zabbix_server.conf DBName=zabbix DBUser=zabbix DBPassword=zabbix
6.2 Copy PHP Of WEB application # mkdir /var/www/html/zabbix # cp -r frontends/php/* /var/www/html/zabbix
6.3 modify /etc/zabbix/zabbix_server.conf Of PidFile= And /etc/init.d/zabbix_server Variables in PIDFILE= Consistent with each other , Pay attention to the permission of saving directories , Can be created pid file , Otherwise it can't be normal start,stop,restart service .
6.4 Add to startup service : edit /etc/init.d/zabbix_server file , In the header of the file #!/bin/sh Add the following two lines under the line : #chkconfig: 35 95 95 #description:zabbix server perform #chkconfig --add zabbix_server
7. start-up Zabbix Server #service zabbix_server start
An error may be reported during startup : libiksemel.so.3: cannot open shared object file: No such file or directory
solve : #updatedb #locate libiksemel.so.3 #ldd zabbix_server
8. visit http://< The server ip>/zabbix Configure page , Step by step . Last zabbix Will give a configuration file , Upload the configuration file zabbix Of WEB Applied conf Catalog . that will do .
There may be problems . php-mbstring No OK
solve : install #yum install php-mbstring
9.http://< The server ip>/zabbix Your login user name and password are admin/zabbix
Client installation One 、 Direct download agent Package installation process zabbix_agents_1.8.5.linux2_6.amd64.tar.gz
1. #groupadd zabbix #useradd zabbix -g zabbix
2. #mkdir /usr/local/zabbix/ #tar -zxvf zabbix_agents_1.8.5.linux2_6.amd64.tar.gz -C /usr/local/zabbix/
Or download the source package , After decompressing , perform #./configure --prefix=/usr/local/zabbix --enable-agent #make #make install
3. To configure zabbix * Service port definition : edit /etc/services, Append after : #cat >> /etc/services << EOF zabbix-agent 10050/tcp Zabbix Agent zabbix-agent 10050/udp Zabbix Agent EOF
* Copy profile : #mkdir /etc/zabbix from zabbix Server Make a copy on the Internet zabbix.agentd.conf
* Install the startup script # Download and copy the startup script zabbix_agentd To /etc/init.d Under the table of contents #chmod a+x /etc/init.d/zabbix_agentd * modify /etc/init.d/zabbix_agentd Variable definitions : BASEDIR=/usr/local/zabbix
* modify /etc/zabbix/zabbix.agentd.conf Of PidFile= And /etc/init.d/zabbix_agentd Variables in PIDFILE= Consistent with each other , Pay attention to the permission of saving directories , Can be created pid file , Otherwise it can't be normal start,stop,restart service .
* Add to startup service : edit /etc/init.d/zabbix_agentd file , In the header of the file #!/bin/sh Add the following two lines under the line : #chkconfig: 35 95 95 #description:zabbix Agent server perform #chkconfig --add zabbix_agentd
* start-up Zabbix Agentd /etc/init.d/zabbix_agentd start
边栏推荐
- Kotlin学习快速入门(7)——扩展的妙用
- SVN完全备份svnadmin hotcopy
- Interpretation of several important concepts of satellite antenna
- Pools de Threads: les composants les plus courants et les plus sujets aux erreurs du Code d'affaires
- 在iptables防火墙下开启vsftpd的端口
- NLP four paradigms: paradigm 1: fully supervised learning in the era of non neural networks (Feature Engineering); Paradigm 2: fully supervised learning based on neural network (Architecture Engineeri
- The largest matrix (H) in a brush 143 monotone stack 84 histogram
- MySQL Basics
- 基于主机的入侵系统IDS
- CC2530 common registers for ADC single channel conversion
猜你喜欢

CC2530 common registers for timer 1

What is your income level in the country?

聊聊接口优化的几个方法

New library online | cnopendata complete data of Chinese insurance institution outlets

Why is WPA3 security of enterprise business so important?

Mysql database -dql

NLP four paradigms: paradigm 1: fully supervised learning in the era of non neural networks (Feature Engineering); Paradigm 2: fully supervised learning based on neural network (Architecture Engineeri

Mysql database DDL and DML

New features of C 10
![29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da](/img/1c/c655c8232de1c56203873dcf171f45.png)
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
随机推荐
One brush 144 force deduction hot question-1 sum of two numbers (E)
PHP online confusion encryption tutorial sharing + basically no solution
[mathematical logic] equivalent calculus and reasoning calculus of propositional logic (propositional logic | equivalent calculus | principal conjunctive (disjunctive) paradigm | reasoning calculus)**
人生还在迷茫?也许这些订阅号里有你需要的答案!
美团一面:为什么线程崩溃崩溃不会导致 JVM 崩溃
定义一个结构体Fraction,表示分数,用于表示 2/3, 5/6这样的分数
[combinatorics] recursive equation (definition of general solution | structure theorem of general solution of recursive equation without multiple roots)
Difference between JSON and bson
How to allow remote connection to MySQL server on Linux system?
mysql用户管理
大变局!全国房价,跌破万元大关
Summary of three methods of PHP looping through arrays list (), each (), and while
Rsync远程同步
CC2530 common registers for port initialization
How to promote cross department project collaboration | community essay solicitation
UCORE overview
CC2530 common registers for crystal oscillator settings
Interpretation of several important concepts of satellite antenna
Leetcode: lucky number in matrix
[combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe