Chinaunix

标题: zabbix_server is not running [打印本页]

作者: 夏寥寥    时间: 2017-04-20 15:40
标题: zabbix_server is not running
zabbix在安装后,在主页面一直提示:zabbix server is not running the information displayed may not be current.
麻烦大神给看下怎么回事?谢谢~


1.我已经关闭了selinux和iptables

【selinux】
[root@A04-ZABBIX conf]# more /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


【iptables】
[root@A04-ZABBIX conf]# service iptables status
iptables:未运行防火墙。


3.开启了fsockopen函数
已在php.ini增加了extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/openssl.so

4.mysql数据库zabbix用户也可登录

5.以下是两个配置文件的内容

/usr/local/zabbix/etc/zabbix_server.conf

  1. ListenPort=10051
  2. LogFile=/tmp/zabbix_server.log
  3. LogFileSize=1
  4. DebugLevel=3
  5. PidFile=/tmp/zabbix_server.pid
  6. DBHost=10.11.247.149
  7. DBName=zabbix
  8. DBUser=zabbix
  9. DBPassword=123456
  10. DBSocket=/usr/local/mysql/mysql.sock
  11. DBPort=3306
  12. VMwareFrequency=60
  13. VMwareCacheSize=80M
  14. ListenIP=127.0.0.1
  15. CacheSize=512M
  16. Timeout=3
  17. AlertScriptsPath=${datadir}/zabbix/alertscripts

复制代码



/usr/local/nginx/web_root/conf/zabbix.conf.php

  1. <?php
  2. // Zabbix GUI configuration file.
  3. global $DB;

  4. $DB['TYPE']     = 'MYSQL';
  5. $DB['SERVER']   = '10.11.247.149';
  6. $DB['PORT']     = '3306';
  7. $DB['DATABASE'] = 'zabbix';
  8. $DB['USER']     = 'zabbix';
  9. $DB['PASSWORD'] = '123456';

  10. // Schema name. Used for IBM DB2 and PostgreSQL.
  11. $DB['SCHEMA'] = '';

  12. $ZBX_SERVER      = '10.11.247.149';
  13. $ZBX_SERVER_PORT = '10051';
  14. $ZBX_SERVER_NAME = 'zabbix-monitor';

  15. $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
  16. ?>
复制代码


6. 在zabbix_server.log中的报错信息
  1. [root@A04-ZABBIX tmp]# tail -f zabbix_server.log
  2.   1274:20170420:104622.920 server #22 started [history syncer #3]
  3.   1278:20170420:104622.920 server #26 started [self-monitoring #1]
  4.   1265:20170420:104622.921 server #13 started [trapper #5]
  5.   1276:20170420:104622.921 server #24 started [escalator #1]
  6.   1264:20170420:104622.922 server #12 started [trapper #4]
  7.   1271:20170420:104622.976 server #19 started [discoverer #1]
  8.   1258:20170420:104630.968 Zabbix agent item "vfs.fs.size[/home,pfree]" on host "Zabbix server" failed: first network error, wait for 15 seconds
  9.   1260:20170420:104645.969 resuming Zabbix agent checks on host "Zabbix server": connection restored
  10.   1268:20170420:111623.105 executing housekeeper
  11.   1268:20170420:111623.110 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.004165 sec, idle 1 hour(s)]

复制代码






作者: 夏寥寥    时间: 2017-04-20 17:27
将文件/usr/local/zabbix/etc/zabbix_server.conf中的ListenIP=127.0.0.1注释掉即可!
作者: 夏寥寥    时间: 2017-04-20 17:31
其他可能错误可参考 http://www.cnblogs.com/rusking/p/4441362.html  
作者: fanrenfly    时间: 2017-12-07 15:44
配置好zabbix_server.conf的选项即可
CentOS Linux release 7.4.1708 (Core) ,zabbix-3.4.0





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2