码迷,mamicode.com
首页 > Web开发 > 详细

zabbix server web端的常见错误

时间:2017-03-10 19:33:20      阅读:4206      评论:0      收藏:0      [点我收藏+]

标签:zabbix server web端安装与纠错

安装出现 PHP option max_input_time       60   300   off

解决:在php.ini文件中将两处max_input_time = 60 的 60 改为 300


安装出现PHP always_populate_raw_post_data    on  off    off

解决:CFrontendSetup.php 文件中修改为:


See: http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data
         *
         * @return array
         */
        public function checkPhpAlwaysPopulateRawPostData() {
                $current = ini_get(‘always_populate_raw_post_data‘);
                  $current=-1;
                return array(
                        ‘name‘ => _(‘PHP always_populate_raw_post_data‘),
                        ‘current‘ => ($current != -1) ? _(‘on‘) : _(‘off‘),
                        ‘required‘ => _(‘off‘),
                        ‘result‘ => ($current != -1) ? self::CHECK_FATAL : self::CHECK_OK,
                        ‘error‘ => _(‘PHP always_populate_raw_post_data must be set to -1.‘)
                );

        }


 技术分享

next

连接数据库

vi /usr/local/zabbix/etc/zabbix_agentd.conf     将Hostnsame=zabbix server 改为 Hostname=本机IP或主机名

vi /usr/local/zabbix/etc/zabbix_agentd.conf      基本配置不变,DBpasswd=   改为 DBpasswd = mysql数据库密码

技术分享


next


技术分享

登录名/密码:admin/zabbix


登录成功显示 zabbix sever 没有运行 并且查看 /tmp/zabbix_server.log日志文件显示

1576:20170307:071712.529 database is down: reconnecting in 10 seconds

  1576:20170307:071722.529 [Z3001] connection to database ‘zabbix‘ failed: [2002] Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘

显然‘/var/lib/mysql/mysql.sock‘不存在,默认mysql.sock在/tmp下,创建软链接,将mysql.sock指向/var/lib/mysql/mysql.sock :  ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock












本文出自 “12271750” 博客,请务必保留此出处http://12281750.blog.51cto.com/12271750/1905130

zabbix server web端的常见错误

标签:zabbix server web端安装与纠错

原文地址:http://12281750.blog.51cto.com/12271750/1905130

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!