zabbix-5.0自动发现
2024-10-19 11:56:12
1. 安装zabbix5.0
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum clean all && yum install zabbix-server-mysql zabbix-agent2 yum-config-manager --enable rhel-server-rhscl-7-rpms && yum install -y centos-release-scl
vim /etc/yum.repos.d/zabbix.repo
[zabbix-frontend]
name=Zabbix Official Repository frontend - $basearch
baseurl=http://repo.zabbix.com/zabbix/5.0/rhel/7/$basearch/frontend
enabled=1 #打开
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 yum install zabbix-web-mysql-scl zabbix-nginx-conf-scl #安装zabbix前端 2. 创建zabbix数据库(mariadb),导入zabbix表
create database zabbix character set utf8 collate utf8_bin;
create user zabbix@localhost identified by '123456';
grant all privileges on zabbix.* to zabbix@localhost; zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix 3. 修改zabbix_server配置及前端PHP配置
DBPassword=123456
vim /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf
listen 80;
server_name example.com; #打开注释,修改本机IP vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
listen.acl_users = apache,nginx
; php_value[date.timezone] = Europe/Riga #打开注释,修改为Asia/Shanghai 4. 启动server,agent2,nginx,php,启动之后直接IP访问安装
systemctl restart zabbix-server zabbix-agent2 rh-nginx116-nginx rh-php72-php-fpm
systemctl enable zabbix-server zabbix-agent2 rh-nginx116-nginx rh-php72-php-fpm
5. 配置自动发现
配置自动发现linux
自动发现-->创建自动发现规则
https://www.zabbix.com/documentation/5.0/zh/manual/installation/frontend/frontend_on_rhel7
6. 自动发现交换机
7. 配置动作
选择自动发现动作-->创建动作
最新文章
- 年度巨献-WPF项目开发过程中WPF小知识点汇总(原创+摘抄)
- 基础3.Jquery操作Dom
- 闲聊桌面应用开发[Win16->;Win32->;ATL/WTL/MFC->;WinForm->;WPF/Silverlight/WinRT]
- 【Xamarin Doc】 Introduction to Storyboards 笔记
- iOS - (懒加载)
- 把QQ聊天记录插入数据库中
- rails tutorial sample app
- 不小心中了machook病毒
- ACM课程学习总结
- java基础之类与对象1
- echarts 柱状图,每根柱子显示不同颜色(随机显示和定制显示)
- Go语言学习索引
- Pivotal开源基于PostgreSQL的数据库Greenplum
- How to set spring boot active profiles with maven profiles
- 我眼中的 Nginx(一):Nginx 和位运算
- typeScript面对对象篇二
- redis实战 -- python知识散记
- jdk动态代理在idea的debug模式下不断刷新tostring方法
- 首次启动Kafka报Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12)
- Linux man 命令