尝试安装zabbix-server时出现以下错误。
无法启动zabbix-server.service:单位zabbix-server.service 无法加载:没有这样的文件或目录。
我无法运行zabbix-agent,但是当我添加另一台服务器作为主机时,我遇到以下错误:
连接到Zabbix服务器" localhost"拒绝了。可能的原因: 1." zabbix.conf.php"中的服务器IP / DNS不正确; 2.安全环境(例如,SELinux)阻止连接; 3. Zabbix服务器守护程序未运行; 4.防火墙阻止TCP连接。连接被拒绝
有关如何解决这些错误的想法吗?
我们是否可以仅使用zabbix-agent而不是zabbix-server检查服务器状态?
答案 0 :(得分:0)
Hi,
I have also faced lots of problem while installing zabbix-server. Hence i have compiled proper installation steps here from scratch.
setup_zabbix_server_on_centos_redhat_7
答案 1 :(得分:0)
进入zabbix.conf.php
#vim /etc/zabbix/web/zabbix.conf.php
ZBX_SERVER = '**your zabbix ip address or DNS name**';
ZBX_SERVER_PORT = '10051';
ZBX_SERVER_NAME = '**your zabbix hostname**';
更改您可以解决错误的IP地址或DNS名称
之后重新启动zabbix服务器
# sudo service zabbix-server restart
验证转到信息中心管理 - >在那里排队你看到数据