关于“Zabbix服务器端运行中 否“错误

在Zabbix管理界面中显示"Zabbix服务器端运行中    否"错误。

查看ZABBIX日志文件连接数据库错误

7674:20230718:214944.295 using configuration file: /etc/zabbix/zabbix_server.conf
  7674:20230718:214944.297 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local server through socket '/run/mysqld/mysqld.sock' (2)

将”/etc/zabbix/zabbix_server.conf"中的“DBHost=localhost”改成“DBHost=127.0.0.1”后重启服务“systemctl restart zabbix-server”,问题解决

### Option: DBHost
#	Database host name.
#	If set to localhost, socket is used for MySQL.
#	If set to empty string, socket is used for PostgreSQL.
#	If set to empty string, the Net Service Name connection method is used to connect to Oracle database; also see
#	the TNS_ADMIN environment variable to specify the directory where the tnsnames.ora file is located.
#
# Mandatory: no
# Default:
# DBHost=localhost
DBHost=127.0.0.1

你可能感兴趣的:(zabbix,oracle,数据库)