(^o^)/~完美 发表于 2019-1-20 11:51:56

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
  # sed -i '/^ServerActive/s/127.0.0.1/192.168.1.10/g' /usr/local/zabbix/etc/zabbix_agentd.conf
  注:Zabbix安装完成后,切忌关掉guest,防止非法登录
http://s2.运维网.com/wyfs02/M01/7F/97/wKiom1cjQuWCXjcmAAD1ZW1X9Wc248.png
http://s2.运维网.com/wyfs02/M00/7F/97/wKiom1cjQufQ_YuhAALyzlTg0NU375.png
  配置好后,关闭安装:
  修改前:
http://s1.运维网.com/wyfs02/M02/7F/97/wKiom1cjQwvDE1YDAAAe3SovH0g519.png
# cd /usr/local/nginx/html/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')
// )
#  修改后:
http://s2.运维网.com/wyfs02/M02/7F/95/wKioL1cjRATDH44AAAAdq7rH7Ms966.png
http://s4.运维网.com/wyfs02/M01/7F/97/wKiom1cjQziC14LPAADa7WnkeEw209.png
  然后用telnet 192.168.1.10 10051,如果不通,看看zabbix.conf.php配置是否正确
# pwd
/usr/local/nginx/html/zabbix/conf
# vim zabbix.conf.phphttp://s4.运维网.com/wyfs02/M00/7F/97/wKiom1cjQ1riqTbOAABTzs8w9HE584.png
  查看Zabbix图形时出现乱码(替换字体[楷体]):
  http://s5.运维网.com/wyfs02/M02/7F/95/wKioL1cjRFLjSkAjAABPMXLtdAU638.png
# pwd
/usr/local/nginx/html/zabbix/fonts
# ls
DejaVuSans.ttfsimkai.ttf
#
# pwd
/usr/local/nginx/html/zabbix/include
# sed -i '/ZBX_FONT_NAME/s/DejaVuSans/simkai/g' defines.inc.php
# sed -i '/ZBX_GRAPH_FONT_NAME/s/DejaVuSans/simkai/g' defines.inc.phphttp://s4.运维网.com/wyfs02/M00/7F/97/wKiom1cjQ6WTfErrAABIISypyRA732.png
http://s3.运维网.com/wyfs02/M00/7F/95/wKioL1cjRIqxNSFfAALPOAGZR54035.png
http://s2.运维网.com/wyfs02/M00/7F/95/wKioL1cjRIrBNyG7AAAPqDYO8AE212.png
  如果跳转到localhost,如下图:
  http://s1.运维网.com/wyfs02/M01/7F/97/wKiom1cjQ9bRc-gbAAAL0QxDCFQ013.png一般是web Server配置的问题
  我这里是用的NG,之前写的是localhost
http://s1.运维网.com/wyfs02/M01/7F/97/wKiom1cjQ_WyObw6AAAVNXzmcWE517.png
  如果出现下面的问题,是编译时没有把SSH编译到zabbix里面
  http://s1.运维网.com/wyfs02/M01/7F/95/wKioL1cjROugy57QAABPkWOtpkw307.png如果出现下面的情况,是编译时没编译IPMI到zabbix,IPMI需要硬件支持
  http://s1.运维网.com/wyfs02/M02/7F/97/wKiom1cjREjjy2d3AAAkgl4hNiY652.png
  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://s3.运维网.com/wyfs02/M02/7F/97/wKiom1cjRGzCN42DAABCDNLJx4c825.png




页: [1]
查看完整版本: Zabbix常见问题收集