[ZBX-25210] config validation doesn't detect a problem with passive agent configuration Created: 2024 Sep 10 Updated: 2025 Apr 17 Resolved: 2025 Apr 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent2 (G) |
Affects Version/s: | 7.0.3 |
Fix Version/s: | 7.0.12rc1, 7.2.6rc1, 7.4.0rc1 (master) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Edgars Melveris | Assignee: | Artjoms Rimdjonoks |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | 30h | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||
Team: | |||||
Sprint: | S25-W10/11, S25-W12/13, S25-W14/15 | ||||
Story Points: | 1 |
Description |
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) |
Comments |
Comment by Artjoms Rimdjonoks [ 2025 Apr 11 ] |
Available in versions:
|