我应该做什么,我已经为我认为运行良好的 zabbix 服务器设置了一切,但现在它没有在最后一步运行。我不知道出了什么问题。我怎样才能解决这个问题?这是我第一次,请帮忙,谢谢:)
?php
// Zabbix GUI configuration file.
$DB['TYPE'] = 'MYSQL';
$DB['SERVER'] = 'localhost';
$DB['PORT'] = '0';
$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = 'zabbix_db_pass';
// Schema name. Used for PostgreSQL.
$DB['SCHEMA'] = '';
// Used for TLS connection.
$DB['ENCRYPTION'] = false;
$DB['KEY_FILE'] = '';
$DB['CERT_FILE'] = '';
$DB['CA_FILE'] = '';
$DB['VERIFY_HOST'] = false;
$DB['CIPHER_LIST'] = '';
// Use IEEE754 compatible value range for 64-bit Numeric (float) history values.
"/etc/zabbix/web/zabbix.conf.php" 47L, 1484C
///////zabix.conf.php starts here
// Use IEEE754 compatible value range for 64-bit Numeric (float) history values.
// This option is enabled by default for new Zabbix installations.
// For upgraded installations, please read database upgrade notes before enabling this$
$DB['DOUBLE_IEEE754'] = true;
$ZBX_SERVER = 'localhost';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = '';
$IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
// Uncomment this block only if you are using Elasticsearch.
// Elasticsearch url (can be string if same url is used for all types).
//$HISTORY['url'] = [
// 'uint' => 'http://localhost:9200',
// 'text' => 'http://localhost:9200'
//];
我还注意到防火墙状态中的这条小消息:
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-11-22 13:14:25 EST; 2h 5min ago
Docs: man:firewalld(1)
Main PID: 767 (firewalld)
Tasks: 2
CGroup: /system.slice/firewalld.service
我的服务器似乎发生了太多事情,但我不知道在哪里编辑它。谁能帮我找到与 CentOS Linux 版本 7.9,2009(核心)兼容的指南
答案1
如果你已经读到最后下载并安装 Zabbix 说明并且服务没有运行,似乎值得尝试“启动 Zabbix 服务器和代理进程”命令:
systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-agent httpd php-fpm
答案2
确保您的 zabbix 服务器进程正在运行:ps -ef | grep -i zabb
从 zabbix-server 控制台 (process = zabbix_server
)。
还要确保您在同一台服务器上运行 zabbix-agent (process = zabbix_agentd
)。