当前位置:网站首页>[monitoring] ZABBIX
[monitoring] ZABBIX
2022-07-04 23:29:00 【Sprite, don't be angry】
List of articles
Preface
The content of this blog is only to record the thoughts of bloggers , For reference only , Everything is subject to the results of their own practice .
One 、 build
1.1 Go straight to step
#zabbix Server side
systemctl disable --now firewalld
setenforce 0
hostnamectl set-hostname zbx-server
su
rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
cd /etc/yum.repos.d
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' zabbix.repo
yum clean all && yum makecache
yum install -y zabbix-server-mysql zabbix-agent
yum install -y centos-release-scl
vim zabbix.repo
11 That's ok :enable=1
yum install -y zabbix-web-mysql-scl zabbix-apache-conf-scl
# install mariadb Database and set the boot up
yum install -y mariadb-server mariadb
systemctl enable --now mariadb
# Configure database password
mysql_secure_installation
enter
y
Set database password
Confirm the password
All the way back to the end
# Enter the database as zabbix to grant authorization
mysql -u root -pabc123
CREATE DATABASE zabbix character set utf8 collate utf8_bin;
GRANT all ON zabbix.* TO 'zabbix'@'%' IDENTIFIED BY 'zabbix';
flush privileges;
# Query the database sql The location of the file , It's a .gz Compressed package at the end
rpm -ql zabbix-server-mysql
# My version number is the following
/usr/share/doc/zabbix-server-mysql-5.0.24/create.sql.gz
# use zcat Query the contents of the compressed package , And send parameters to the database for import
zcat //usr/share/doc/zabbix-server-mysql-5.0.24/create.sql.gz | mysql -uroot -pabc123 zabbix
vim /etc/zabbix/zabbix_server.conf
124 That's ok :DBPassword=zabbix
vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
php_value[date.timezone] = Asia/Shanghai
systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm
Browser access :192.168.13.10/zabbix
Just set the password of the database zabbix
Login account :Admin password :zabbix
Configuration page :
lower left :user settings
Options :language -> Chinese -> update( The language is changed to Chinese )
# When the client is configured , You can execute the following command to verify that the client is started successfully , Query the client name
yum install -y zabbix-get
zabbix_get -s '192.168.13.20' -p 10050 -k 'agent.ping'
zabbix_get -s '192.168.13.20' -p 10050 -k 'system.hostname'
#zabbix Client configuration
systemctl disable --now firewalld
setenforce 0
hostnamectl set-hostname zbx-agent01
su
yum install -y ntpdate
ntpdate -u ntp.aliyun.com
cp -p /etc/localtime{
,.bak}
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
cd /etc/yum.repos.d
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
yum install -y zabbix-agent2
vim /etc/zabbix/zabbix_agent2.conf
80 That's ok :Server=192.168.13.10
120 That's ok :ServerActive=192.168.13.10
131 That's ok :Hostname=zbx-agent01
systemctl start zabbix-agent2
systemctl enable zabbix-agent2
netstat -natp | grep zabbix
Enter the server web Interface configuration
To configure -> host -> Create a host
host :
Host name :zbx-agent01
Visible name :zbx-agent01-192.168.80.30
group :Linux servers
client :192.168.80.30
Templates :
Link new templates:Template OS Linux by Zabbix agent
# Switch the options on the left randomly , Switch back ,zbx Has been launched
Two 、 Conclusion
- It's easy to build , There's nothing to say , Mainly I can see the graphical interface
边栏推荐
- S32 design studio for arm 2.2 quick start
- Qt个人学习总结
- ETCD数据库源码分析——处理Entry记录简要流程
- 45 year old professor, she threw two super unicorns
- How to reduce the stock account Commission and stock speculation commission? Is it safe to open an online account
- HMS core machine learning service
- D3.js+Three. JS data visualization 3D Earth JS special effect
- Selected cutting-edge technical articles of Bi Ren Academy of science and technology
- uniapp 除了数字,其他输入无效
- How to apply for PMP project management certification examination?
猜你喜欢
ICML 2022 || 3DLinker: 用于分子链接设计的E(3)等变变分自编码器
Font design symbol combination multifunctional wechat applet source code
Qt个人学习总结
一次edu证书站的挖掘
Intelligence test to see idioms guess ancient poems wechat applet source code
MIT-6.824-lab4B-2022(万字思路讲解-代码构建)
多回路仪表在基站“转改直”方面的应用
电力运维云平台:开启电力系统“无人值班、少人值守”新模式
Redis:Redis的事务
如何用快解析自制IoT云平台
随机推荐
如何用快解析自制IoT云平台
机器学习在房屋价格预测上的应用
华泰证券低佣金的开户链接安全吗?
PaddleOCR教程
[crawler] jsonpath for data extraction
45岁教授,她投出2个超级独角兽
List related knowledge points to be sorted out
Qt个人学习总结
Ffmpeg quick clip
Servlet服务器端和客户端中文输出乱码问题
字体设计符号组合多功能微信小程序源码
[Taichi] change pbf2d (position based fluid simulation) of Taiji to pbf3d with minimal modification
Intelligence test to see idioms guess ancient poems wechat applet source code
Mysql database backup and recovery -- mysqldump command
Redis: redis message publishing and subscription (understand)
多回路仪表在基站“转改直”方面的应用
电力运维云平台:开启电力系统“无人值班、少人值守”新模式
cout/cerr/clog的区别
PICT 生成正交测试用例教程
Jar batch management gadget