1.zabbix仪表板错误
问题:
zabbix server is not running: the information displayed may not be current
解决方案:
几种情况都有可能引起这个错误:
1)可能是zabbix-server未安装zabbix-agent;或者安装了却没有检测到agent的端口
2)
2.日志报错
问题:
172730.555 [Z3001] connection to database 'zabbix' failed: [1045] Access denied for
解决方案:
#修改配置文件
shell->vim/etc/zabbix/zabbix-server.conf
DBPassword=zabbix
#重启服务
shell->/etc/init.d/zabbix-server restart
#再次查看日志
shell->tail -f /var/log/zabbix/zabbix-server.log
3. 提示没有中文环境
问题:
You are not able to choose some of the languages, because locales for them are not installed on the
解决方案:
1、启用中文
vi /usr/share/zabbix/include/locales.inc.php
把zh_CN后面参数写true 然后去web界面选择语言。
如果,去选择语言的时候,你发现还是不能选择.
提示:
You are not able to choose some of the languages, because locales for them are not installed on the web server.
是因为你系统里没中文环境
那么:设置中文环境
第一步,安装中文包:
apt-get install language-pack-zh-hant language-pack-zh-hans
第二步,配置相关环境变量:
vi /etc/environment
在文件中增加语言和编码的设置:
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"
第三步,重新设置本地配置:
dpkg-reconfigure locales
现在重启apache&zabbix_server两个服务一下,应该可以选了。。
2、但是我发现翻译的不好,有大神做了更好的翻译(未测)
进入
cd /usr/share/zabbix/locale/zh_CN/LC_MESSAGES目录
代码: 全选
wget https://github.com/echohn/zabbix-zh_CN/ ... master.zip
unzip master.zip
rm frontend.mo
cp zabbix-zh_CN-master/frontend.mo frontend.mo
现在重启apache&zabbix_server两个服务
service zabbix-server restart
service apache2 restart
3、乱码问题
看图时候,如果有中文,会乱码
调整图像里的中文乱码
下载雅黑
代码: 全选
wget http://dx.sc.chinaz.com/Files/DownLoad/font2/dd.rar
解压缩文件
rar x dd.rar
cp dd/msyh.ttf msyh.ttf
然后修改 vi /usr/share/zabbix/include/defines.inc.php
找到
define('ZBX_GRAPH_FONT_NAME', 'graphfont'); // font file name
修改成:
define('ZBX_GRAPH_FONT_NAME', 'msyh'); // font file name
cp msyh.ttf /usr/share/zabbix/fonts #少了这一步则图形下面没有字体
重启apache服务即可
[zabbix3.0使用](http://www.tuicool.com/articles/e2EnMvi)
里面设置字体的地方43行跟93行设为一样即可
4.重要的mibs库,必须更新,否则snmp监控交换机时,mib会报错。(未测)
apt-get install snmp-mibs-downloade
##一些提示 tips
重新启动zabbix-server服务进程
# service zabbix-server restart
重新启动zabbix-agent进程
# service zabbix-server restart
重启apache进程
#service apache2 restart
重要目录:
log: /var/log/zabbix/zabbix_server/log和agent.log 排查错误必须
conf:/etc/zabbix/*.conf
安装目录:/usr/share/zabbix 重要的include,font .etc
根web目录在var/www/html
###原文:http://www.cnblogs.com/zangdalei/p/5712951.html
4、apt-get update更新时报错
问题:
Failed to fetch
http://ubuntu.kurento.org/dists/trusty/kms6/binary-i386/Packages 403 Forbidden [IP: 112.124.140.210 80]
解决方案:
apt-get update时出现没有权限(403)的问题,112.124.140.210 是apt代理地址,修改(或者删除,注释最好)apt.conf文件,取消掉这个代理就可以了,当然不用代理的话,您的ubuntu必须能够访问外网。
5.zabbix微信报警时出现
shell脚本中忘记开头!#/bin/bash 导致手动执行脚本微信可以发生消息,但是zabbix触发后action完成但是微信收不到消息!