Zabbix常见问题收集

zabbix rpm包下载地址:http://repo.zabbix.com/zabbix/

configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h

需要安装libssh2-devel

configure: error: Invalid OPENIPMI directory - unable to find ipmiif.h

需要安装OpenIPMI-devel

[root@zabbix ~]# sed -i ‘/^ServerActive/s/127.0.0.1/192.168.1.10/g‘ /usr/local/zabbix/etc/zabbix_agentd.conf

注:Zabbix安装完成后,切忌关掉guest,防止非法登录

技术分享

技术分享

配置好后,关闭安装:

修改前:

技术分享

[root@Zabbix ~]# cd /usr/local/nginx/html/zabbix/include/
[root@Zabbix include]# head -n 281 menu.inc.php |tail -n 9
   array(
    ‘url‘ => ‘report4.php‘,
    ‘label‘ => _(‘Notifications‘)
   ),
// array(
// ‘url‘ => ‘setup.php‘,
// ‘label‘ => _(‘Installation‘),
// ‘sub_pages‘ => array(‘warning.php‘)
// )
[root@Zabbix include]#

修改后:

技术分享

技术分享

然后用telnet 192.168.1.10 10051,如果不通,看看zabbix.conf.php配置是否正确

[root@Zabbix conf]# pwd
/usr/local/nginx/html/zabbix/conf
[root@Zabbix conf]# vim zabbix.conf.php

技术分享

查看Zabbix图形时出现乱码(替换字体[楷体]):

技术分享

[root@Zabbix fonts]# pwd
/usr/local/nginx/html/zabbix/fonts
[root@Zabbix fonts]# ls
DejaVuSans.ttf  simkai.ttf
[root@Zabbix fonts]#
[root@Zabbix include]# pwd
/usr/local/nginx/html/zabbix/include
[root@Zabbix include]# sed -i ‘/ZBX_FONT_NAME/s/DejaVuSans/simkai/g‘ defines.inc.php
[root@zabbix include]# sed -i ‘/ZBX_GRAPH_FONT_NAME/s/DejaVuSans/simkai/g‘ defines.inc.php

技术分享

技术分享

技术分享

如果跳转到localhost,如下图:

技术分享一般是web Server配置的问题

我这里是用的NG,之前写的是localhost

技术分享

如果出现下面的问题,是编译时没有把SSH编译到zabbix里面

技术分享如果出现下面的情况,是编译时没编译IPMI到zabbix,IPMI需要硬件支持

技术分享

Zabbix的配置文件记录在数据库中;

[root@Zabbix ~]# mysql -uroot -predhat
mysql> use zabbix
mysql> show tables;
mysql> select name from actions;
+------------------------------------------+
| name                                     |
+------------------------------------------+
| Auto discovery. Linux servers.           |
| Report problems to Zabbix administrators |
| Report Network Traffic to zabbix admin   |
| Report ftp Server status                 |
+------------------------------------------+
4 rows in set (0.00 sec)
mysql>

技术分享

本文出自 “鹏城-酱油瓶” 博客,谢绝转载!

文章来自:http://yfshare.blog.51cto.com/8611708/1769101
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3