zabbix图形界面安装及解决异常问题过程(二)_zabbix的web为什么next setup点不了

img
img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

需要这份系统化的资料的朋友,可以戳这里获取

问题原因:ldap.so模块缺失

解决办法:重新编译安装

安装依赖包:[root@localhost ~]# yum install openldap openldap-devel  -y

停止php服务:[root@localhost ~]# pkill php-fpm

按照原来编译的参数重新编译并加上–with-ldap参数

[root@localhost ~]# ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/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 --with-ldap

[root@localhost ~]# make && make install

[root@localhost ~]# make test

从新刷新网页界面后得到以下界面

3、进入下一步再次数据库链接异常报错

报错原因:php链接数据库异常

解决办法:

查找数据库的sock文件:

[root@localhost ~]# find / -name mysql.sock

/var/lib/mysql/mysql.sock

修改php的php.ini配置文件:

[root@localhost ~]# vim /usr/local/php/etc/php.ini

[root@localhost ~]# sed -n ‘/mysqli.default_socket/p’ /usr/local/php/etc/php.ini

mysqli.default_socket = /data/mysql/mysql.sock

重启php:

[root@localhost ~]# pkill php-fpm

[root@localhost ~]# /usr/local/php/sbin/php-fpm

解决后的到如下图:

4、点击下一步得到数据库的相应信息,如下

5、点击下一步有报错,报错信息如下

问题原因:数据库信息在zabbix配置文件里没有配置好

解决办法:

修改配置文件

[root@localhost ~]# cd /data/zabbix/conf/
[root@localhost conf]# cp zabbix.conf.php.example zabbix.conf.php
[root@localhost conf]# vim zabbix.conf.php

重启php服务:

[root@localhost conf]# pkill php-fpm

[root@localhost conf]# /usr/local/php/sbin/php-fpm

刷新网页得到以下报错:

问题原因:手动修改的文件无法起作用

解决办法:

点击上图中蓝色的Download the configuration file 后下载zabbix.conf.php文件,并将文件传到服务器的zabbix目录的conf路径下的配置文件,我的路径是/data/zabbix/conf

放到路径下后我们直接刷新网页界面,得到如下图:

出现以上的绿色字样标志着我们的zabbix已经安装完毕,此时可以点击finish

6、此时出现登陆界面了:(默认账号是:admin,密码是:zabbix)

img
img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

需要这份系统化的资料的朋友,可以戳这里获取

也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新

需要这份系统化的资料的朋友,可以戳这里获取

### Zabbix Group Management and Usage In the context of managing monitoring targets within Zabbix, host groups play a significant role in organizing monitored hosts logically. This organization simplifies configuration management and reporting processes. #### Creating Host Groups To create a new host group: 1. Navigate to **Configuration** -> **Hosts**. 2. Click on the **Groups** tab located at the top-right corner. 3. Select **Create group**, enter a unique name for this group, such as `Linux servers` or `Web applications`. 4. Optionally add templates that should be linked automatically when adding any host into this group[^1]. This setup allows administrators to apply common settings across multiple hosts efficiently by linking them with specific template configurations. #### Assigning Hosts to Groups After creating necessary groups, one can assign existing or newly added hosts accordingly: - When adding a new host through Configuration -> Hosts -> Create host, choose appropriate groups during creation. - For already present entities, select desired items from the list under Actions menu after ticking checkboxes next to relevant entries; then click Move selected to another group option available there[^2]. Such assignments facilitate streamlined administration tasks like applying bulk updates or generating consolidated reports based upon defined categories. #### Utilizing Groups Effectively Utilization of well-defined host groups enhances operational efficiency significantly: - Simplified Template Linkage: By associating certain templates directly with particular groups, automatic application becomes possible whenever a member joins these predefined sets. ```bash # Example command showing linkage between a custom MySQL performance monitoring script and all members inside 'Database Servers' category via API call zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k userparameter.mysql.status -o "$(mysql -u root -e "show slave status\G" | grep -E 'Slave_IO_Running: Yes|Slave_SQL_Running: Yes' | grep -c Yes)" ``` - Enhanced Reporting Capabilities: Generating comprehensive overviews tailored specifically towards individual segments (like web services vs database systems), thereby providing clearer insights about overall infrastructure health without overwhelming users with excessive details unrelated to their focus area[^3]. - Improved Alert Handling Mechanisms: Configuring triggers and actions scoped only around targeted collections ensures timely notifications while minimizing false positives due to irrelevant events outside intended scope boundaries.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值