当前位置:网站首页>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
边栏推荐
- What material is 13crmo4-5 equivalent to in China? 13crmo4-5 chemical composition 13crmo4-5 mechanical properties
- Squid 服务启动脚本
- [combinatorics] non descending path problem (number of non descending paths with constraints)
- 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
- RF analyze demo build step by step
- 数据分析必备的能力
- Kindeditor editor upload image ultra wide automatic compression -php code
- CC2530 common registers for timer 1
- vs code 插件 koroFileHeader
- What is the difference between 14Cr1MoR container plate and 14Cr1MoR (H)? Chemical composition and performance analysis of 14Cr1MoR
猜你喜欢
Free data | new library online | cnopendata complete data of China's insurance intermediary outlets
29:第三章:开发通行证服务:12:开发【获得用户账户信息,接口】;(使用VO类包装查到的数据,以符合接口对返回数据的要求)(在多处都会用到的逻辑,在Controller中可以把其抽成一个共用方法)
Simulink oscilloscope data is imported into Matlab and drawn
Atom QT 16_ audiorecorder
Network security web penetration technology
Shentong express expects an annual loss of nearly 1billion
ucore概述
C语言按行修改文件
Arduino esp32: overall framework of lvgl project (I)
Thread pool: the most common and error prone component of business code
随机推荐
[2. Basics of Delphi grammar] 2 Object Pascal data type
人生还在迷茫?也许这些订阅号里有你需要的答案!
27. 输入3个整数,按从大到小的次序输出。要求用指针方法实现。
手把手带你入门 API 开发
What material is sa537cl2? Analysis of mechanical properties of American standard container plate
Static program analysis (I) -- Outline mind map and content introduction
Apache服务挂起Asynchronous AcceptEx failed.
UCORE overview
[combinatorics] non descending path problem (number of non descending paths with constraints)
Summary of three methods of PHP looping through arrays list (), each (), and while
CC2530 common registers
比亚迪、长城混动市场再“聚首”
[try to hack] active detection and concealment technology
One brush 142 monotone stack next larger element II (m)
The word backspace key cannot delete the selected text, so you can only press Delete
浅谈拉格朗日插值及其应用
聊聊接口优化的几个方法
[combinatorics] recursive equation (example 1 of recursive equation | list recursive equation)
visual studio “通常每个套接字地址(协议/网络地址/端口)只允许使用一次“
智慧之道(知行合一)