- 求职 : Linux运维
- 论坛徽章:
- 10
|
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
- ListenPort=10051
- LogFile=/tmp/zabbix_server.log
- LogFileSize=1
- DebugLevel=3
- PidFile=/tmp/zabbix_server.pid
- DBHost=10.11.247.149
- DBName=zabbix
- DBUser=zabbix
- DBPassword=123456
- DBSocket=/usr/local/mysql/mysql.sock
- DBPort=3306
- VMwareFrequency=60
- VMwareCacheSize=80M
- ListenIP=127.0.0.1
- CacheSize=512M
- Timeout=3
- AlertScriptsPath=${datadir}/zabbix/alertscripts
复制代码
/usr/local/nginx/web_root/conf/zabbix.conf.php
- <?php
- // Zabbix GUI configuration file.
- global $DB;
- $DB['TYPE'] = 'MYSQL';
- $DB['SERVER'] = '10.11.247.149';
- $DB['PORT'] = '3306';
- $DB['DATABASE'] = 'zabbix';
- $DB['USER'] = 'zabbix';
- $DB['PASSWORD'] = '123456';
- // Schema name. Used for IBM DB2 and PostgreSQL.
- $DB['SCHEMA'] = '';
- $ZBX_SERVER = '10.11.247.149';
- $ZBX_SERVER_PORT = '10051';
- $ZBX_SERVER_NAME = 'zabbix-monitor';
- $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
- ?>
复制代码
6. 在zabbix_server.log中的报错信息
- [root@A04-ZABBIX tmp]# tail -f zabbix_server.log
- 1274:20170420:104622.920 server #22 started [history syncer #3]
- 1278:20170420:104622.920 server #26 started [self-monitoring #1]
- 1265:20170420:104622.921 server #13 started [trapper #5]
- 1276:20170420:104622.921 server #24 started [escalator #1]
- 1264:20170420:104622.922 server #12 started [trapper #4]
- 1271:20170420:104622.976 server #19 started [discoverer #1]
- 1258:20170420:104630.968 Zabbix agent item "vfs.fs.size[/home,pfree]" on host "Zabbix server" failed: first network error, wait for 15 seconds
- 1260:20170420:104645.969 resuming Zabbix agent checks on host "Zabbix server": connection restored
- 1268:20170420:111623.105 executing housekeeper
- 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)]
复制代码
|
|