Hi all,
I am not a Linux guy. So it's really hard for me to troubleshoot. It’s greatly appreciated if anyone can help me on this.
CentOS 6.5 + Zabbix 2.2 + MySQL 5.1.71
I followed the online guide to install zabbix. Everything looks good. But when I access the web page, 'Zabbix server is not running' shows on the web page.

/etc/zabbix/zabbix_server.conf
=====================
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
=====================
/var/log/zabbix/zabbix_server.log
=====================
3065:20140213:141232.534 using configuration file: /etc/zabbix/zabbix_server.conf
3065:20140213:141232.537 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
3065:20140213:141232.537 Database is down. Reconnecting in 10 seconds.
3065:20140213:141242.538 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
3065:20140213:141242.539 Database is down. Reconnecting in 10 seconds.
3065:20140213:141252.570 current database version (mandatory/optional): 02020000/02020000
3065:20140213:141252.570 required mandatory version: 02020000
3255:20140213:141252.653 server #10 started [trapper #2]
3247:20140213:141252.654 server #2 started [db watchdog #1]
3257:20140213:141252.654 server #12 started [trapper #4]
3258:20140213:141252.655 server #13 started [trapper #5]
3259:20140213:141252.655 server #14 started [icmp pinger #1]
3261:20140213:141252.656 server #16 started [housekeeper #1]
3261:20140213:141252.656 executing housekeeper
3262:20140213:141252.659 server #17 started [timer #1]
3265:20140213:141252.662 server #20 started [history syncer #1]
3263:20140213:141252.663 server #18 started [http poller #1]
3266:20140213:141252.664 server #21 started [history syncer #2]
3254:20140213:141252.664 server #9 started [trapper #1]
3267:20140213:141252.664 server #22 started [history syncer #3]
3256:20140213:141252.664 server #11 started [trapper #3]
3260:20140213:141252.665 server #15 started [alerter #1]
3275:20140213:141252.666 server #24 started [escalator #1]
3065:20140213:141252.667 server #0 started [main process]
3268:20140213:141252.668 server #23 started [history syncer #4]
3276:20140213:141252.671 server #25 started [proxy poller #1]
3246:20140213:141252.672 server #1 started [configuration syncer #1]
3277:20140213:141252.672 server #26 started [self-monitoring #1]
3261:20140213:141252.742 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.063857 sec, idle 1 hour(s)]
3250:20140213:141252.812 server #5 started [poller #3]
3251:20140213:141252.813 server #6 started [poller #4]
3264:20140213:141252.810 server #19 started [discoverer #1]
3248:20140213:141252.821 server #3 started [poller #1]
3253:20140213:141252.821 server #8 started [unreachable poller #1]
3252:20140213:141252.821 server #7 started [poller #5]
3249:20140213:141252.823 server #4 started [poller #2]
3261:20140213:151252.743 executing housekeeper
3261:20140213:151252.749 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.003233 sec, idle 1 hour(s)]
3261:20140213:161252.751 executing housekeeper
3261:20140213:161252.755 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.002472 sec, idle 1 hour(s)]
3275:20140213:170644.090 [Z3005] query failed: [2006] MySQL server has gone away [select escalationid,actionid,triggerid,eventid,r_eventid, nextcheck,esc_step,status,itemid from escalations order by actionid,triggerid,itemid,escalationid]
3275:20140213:170644.091 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
3275:20140213:170644.091 Database is down. Reconnecting in 10 seconds.
=====================
/etc/my.cnf
=====================
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[client]
port=3306
socket=/var/lib/mysql/mysql.sock
=====================
I have tried a lot of things which I found in other thread. Zabbix account can log on with MySQL and open Zabbix DB. Any other hints?
Thanks,
John
I am not a Linux guy. So it's really hard for me to troubleshoot. It’s greatly appreciated if anyone can help me on this.
CentOS 6.5 + Zabbix 2.2 + MySQL 5.1.71
I followed the online guide to install zabbix. Everything looks good. But when I access the web page, 'Zabbix server is not running' shows on the web page.
/etc/zabbix/zabbix_server.conf
=====================
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
=====================
/var/log/zabbix/zabbix_server.log
=====================
3065:20140213:141232.534 using configuration file: /etc/zabbix/zabbix_server.conf
3065:20140213:141232.537 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
3065:20140213:141232.537 Database is down. Reconnecting in 10 seconds.
3065:20140213:141242.538 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
3065:20140213:141242.539 Database is down. Reconnecting in 10 seconds.
3065:20140213:141252.570 current database version (mandatory/optional): 02020000/02020000
3065:20140213:141252.570 required mandatory version: 02020000
3255:20140213:141252.653 server #10 started [trapper #2]
3247:20140213:141252.654 server #2 started [db watchdog #1]
3257:20140213:141252.654 server #12 started [trapper #4]
3258:20140213:141252.655 server #13 started [trapper #5]
3259:20140213:141252.655 server #14 started [icmp pinger #1]
3261:20140213:141252.656 server #16 started [housekeeper #1]
3261:20140213:141252.656 executing housekeeper
3262:20140213:141252.659 server #17 started [timer #1]
3265:20140213:141252.662 server #20 started [history syncer #1]
3263:20140213:141252.663 server #18 started [http poller #1]
3266:20140213:141252.664 server #21 started [history syncer #2]
3254:20140213:141252.664 server #9 started [trapper #1]
3267:20140213:141252.664 server #22 started [history syncer #3]
3256:20140213:141252.664 server #11 started [trapper #3]
3260:20140213:141252.665 server #15 started [alerter #1]
3275:20140213:141252.666 server #24 started [escalator #1]
3065:20140213:141252.667 server #0 started [main process]
3268:20140213:141252.668 server #23 started [history syncer #4]
3276:20140213:141252.671 server #25 started [proxy poller #1]
3246:20140213:141252.672 server #1 started [configuration syncer #1]
3277:20140213:141252.672 server #26 started [self-monitoring #1]
3261:20140213:141252.742 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.063857 sec, idle 1 hour(s)]
3250:20140213:141252.812 server #5 started [poller #3]
3251:20140213:141252.813 server #6 started [poller #4]
3264:20140213:141252.810 server #19 started [discoverer #1]
3248:20140213:141252.821 server #3 started [poller #1]
3253:20140213:141252.821 server #8 started [unreachable poller #1]
3252:20140213:141252.821 server #7 started [poller #5]
3249:20140213:141252.823 server #4 started [poller #2]
3261:20140213:151252.743 executing housekeeper
3261:20140213:151252.749 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.003233 sec, idle 1 hour(s)]
3261:20140213:161252.751 executing housekeeper
3261:20140213:161252.755 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 sessions, 0 alarms, 0 audit items in 0.002472 sec, idle 1 hour(s)]
3275:20140213:170644.090 [Z3005] query failed: [2006] MySQL server has gone away [select escalationid,actionid,triggerid,eventid,r_eventid, nextcheck,esc_step,status,itemid from escalations order by actionid,triggerid,itemid,escalationid]
3275:20140213:170644.091 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
3275:20140213:170644.091 Database is down. Reconnecting in 10 seconds.
=====================
/etc/my.cnf
=====================
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[client]
port=3306
socket=/var/lib/mysql/mysql.sock
=====================
I have tried a lot of things which I found in other thread. Zabbix account can log on with MySQL and open Zabbix DB. Any other hints?
Thanks,
John
Comment