zabbix 报错
来源:互联网 发布:中国药科大学网络教育 编辑:程序博客网 时间:2024/06/05 02:41
1、启动 zabbix,ps aux |grep zabbix 发现没有 zabbix_server。
# cat /var/log/zabbix/zabbix_server.log
4720:20170331:024448.126 [Z3001] connection to database 'zabbix' failed: [1044] Access denied for user ''@'localhost' to database 'zabbix'
4720:20170331:024448.126 Cannot connect to the database. Exiting...
原因:不能连接数据库,没有创建 zabbix 数据库,并且没有授权
解决:参考 zabbix 服务端安装
2、- date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead [include/page_header.php:186]
解决:
vim /etc/php.in
date.timezone = 'Asia/Chongqing'
/etc/init.d/httpd restart
另外安装的时候出现的参数不对,也都是在 php.ini 配置文件中
3、zabbix Dashboard 界面, Zabbix server is not running.
解决:
vim /etc/zabbix/zabbix_server.conf
DBUser=zabbix
DBPassword=zabbix
4、zabbix 监控页面出现问号乱码
http://www.phperz.com/article/14/1106/33588.html
主要原因是因为在创建 zabbix 数据库的时候,没有指定字符集为 utf-8,
5、zabbix 2.2 监控页面图形中有乱码(方框)
http://ask.apelearn.com/question/8090
6、zabbix 脚本发送邮件报警中文乱码,邮件内容变成附件
# yum install -y mailx dos2unix
# vim mail.sh
#!/bin/bash
#export LANG=zh_CN.UTF-8 //解决发送的中文变成了乱码的问题
FILE=/tmp/mailtmp.txt
echo "$3" >$FILE
dos2unix -k $FILE //解决了发送的邮件内容变成附件的问题。
/bin/mail -s "$2" $1 < $FILE
阅读全文
0 0
- zabbix报错分析
- zabbix fping报错
- zabbix安装报错
- zabbix 报错
- zabbix 2.4 报错汇总
- yum 安装zabbix报错
- zabbix安装报错记录
- zabbix网页登录报错
- zabbix安装报错集锦
- zabbix常见报错问题处理
- 部署zabbix客户端报错信息
- ubuntu安装zabbix后,启动报错,zabbix_server is disabled in /etc/default/zabbix-server.
- zabbix监控报错zabbix server is not running: the information displayed may not be current
- zabbix server 报错 zabbix server is not running: the information displayed may not be current
- Zabbix 报错 [113] No route to host
- zabbix-3.0导入percona模板报错 【转】
- zabbix监控报错zabbix server is not running: the information displayed may not be current的解决
- MySQL5.7 SLAVE监控zabbix报警 报错Slave_SQL_Running_State: invalidating query cache entries (table)处理
- pyspark执行hivesqlstr
- 完成二叉树的判断
- Java Filter过滤机制详解与监听器详解
- Zookeeper原理架构
- 【Quartz】深入Job、JobDetail、JobDataMap、Trigger
- zabbix 报错
- Windows系统alt+数字键 的特殊字符集
- Log4j2实现不同线程不同级别日志输出到不同的文件中
- POJ
- 【Quartz】Spring3.2.9+Quqrtz2.2.1实现定时实例
- Leo_CT's Box
- webshell
- 基于Spring task注解方式配置任务
- opencv2.4.9+VS2013中imread和cvLoadimage的使用区别