如果提示database问题,请查看日志
# tail -n 100 /var/log/zabbix/zabbix_server.log48397:20171215:233509.873 enabling SNMP agent checks on host "10.1.254.19": host became available
48342:20171215:234424.931 Got signal [signal:15(SIGTERM),sender_pid:58214,sender_uid:0,reason:0]. Exiting ...
48342:20171215:234426.933 syncing history data...
48342:20171215:234426.934 syncing history data done
48342:20171215:234426.934 syncing trend data...
48342:20171215:234431.010 syncing trend data done
48342:20171215:234431.010 Zabbix Server stopped. Zabbix 3.4.4 (revision 74338).
58349:20171215:234703.850 Starting Zabbix Server. Zabbix 3.4.4 (revision 74338).
58349:20171215:234703.850 ****** Enabled features ******
58349:20171215:234703.850 SNMP monitoring: YES
58349:20171215:234703.850 IPMI monitoring: YES
58349:20171215:234703.850 Web monitoring: YES
58349:20171215:234703.850 VMware monitoring: YES
58349:20171215:234703.850 SMTP authentication: YES
58349:20171215:234703.850 Jabber notifications: YES
58349:20171215:234703.850 Ez Texting notifications: YES
58349:20171215:234703.850 ODBC: YES
58349:20171215:234703.851 SSH2 support: YES
58349:20171215:234703.851 IPv6 support: YES
58349:20171215:234703.851 TLS support: YES
58349:20171215:234703.851 ******************************
58349:20171215:234703.851 using configuration file: /etc/zabbix/zabbix_server.conf
58349:20171215:234703.857 current database version (mandatory/optional): 03020000/03040005
58349:20171215:234703.857 required mandatory version: 03040000
58349:20171215:234704.240 server #0 started [main process]zabbix官网升级说明:
Zabbix server将会自动升级数据库。开始后,Zabbix server报告当前(强制和非强制的)和需要的数据库版本。如果当前强制版本低于需要的版本,Zabbix server自动执行所需要的数据库补丁。数据库升级的开始和进度信息(百分比)将会写入Zabbix server的日志文件中。当升级完成后,将会在日志文件中写入一条“database upgrade fully completed”的信息。如果任何升级补丁失败,Zabbix server将不会启动,即使数据库当前强制版本比所需版本高,Zabbix server也不会启动。只有当数据库当前的强制版本与需要的强制版本相符时,Zabbix server才会启动。
8673:20161117:104750.259 current database version (mandatory/optional): 03040000/03040000
8673:20161117:104750.259 required mandatory version: 03040000 修改数据库中的配置
[root@zabbix ~]# mysql -uroot -pmysqlpass
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 59371
Server version: 10.1.24-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use zabbix;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
MariaDB [zabbix]> update dbversion set mandatory=03040000;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0 可以查看系统要求的参数,如果不符合根据提示修改