-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.0.3
-
None
-
Sprint candidates
Set incorrect details in Server= parameter:
[root@70 ~]# grep Server= /etc/zabbix/zabbix_agent2.conf # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com # Server= Server=127.0.0.1;localhost
Don't trust yourself to create correct agent config, instead trust Zabbix to check this:
[root@70 ~]# zabbix_agent2 -T
Validating configuration file "/etc/zabbix/zabbix_agent2.conf"
Validation successful
Be sure that everything will work correctly, as it's validated, restart the agent and leave work:
[root@70 ~]# systemctl restart zabbix-agent2
Only to find that passive agent hasn't been working after restart:
[root@70 ~]# tail /var/log/zabbix/zabbix_agent2.log 2024/09/07 19:03:40.998115 using plugin 'VfsFs' (built-in) providing following interfaces: exporter 2024/09/07 19:03:40.998117 using plugin 'WebCertificate' (built-in) providing following interfaces: exporter, configurator 2024/09/07 19:03:40.998119 using plugin 'WebPage' (built-in) providing following interfaces: exporter, configurator 2024/09/07 19:03:40.998121 using plugin 'ZabbixAsync' (built-in) providing following interfaces: exporter 2024/09/07 19:03:40.998124 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator 2024/09/07 19:03:40.998125 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 1000 exceeds limits 2024/09/07 19:03:40.998127 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter 2024/09/07 19:03:40.998354 Plugin communication protocol version is 6.4.0 2024/09/07 19:03:40.998366 Zabbix Agent2 hostname: [test host] 2024/09/07 19:03:40.998663 cannot start server listener: invalid "Server" configuration: incorrect address parameter: "127.0.0.1;localhost"
[root@70 ~]# zabbix_get -s 127.0.0.1 -k agent.hostname zabbix_get [169573]: Get value error: cannot connect to [[127.0.0.1]:10050]: connection error (POLLERR,POLLHUP)