-
Problem report
-
Resolution: Fixed
-
Trivial
-
6.0.33, 7.0.4rc1, 7.2.0alpha1
-
S24-W34/35, S24-W38/39, S24-W40/41, S24-W42/43, S24-W44/45, S24-W46/47, S24-W48/49
-
0.5
I noticed that agentd and agent2 works inconsistent in some cases when configuration parameter(s) are passed without value.
Steps to reproduce:
- Open zabbix_agent2.conf file
- Uncomment for e.g. HeartbeatFrequency= and save the configuration.
- Start the agent2
- Do the same steps for agentd
- Compare results
Result: Agent2 started successfully, but agentd returns an error ->
zabbix_agentd [229522]: wrong value of "HeartbeatFrequency" in config file "/home/zabbix/workspace/7.0/etc/zabbix_agentd.conf", line 276
Expected: I guess in this case agent2 should work the same as agentd and it should return an error about wrong or empty value.
Note: the same behavior (agent2 can be started with empty param value) is for parameters:
- EnablePersistentBuffer (7.0, master)
- UnsafeUserParameters (7.0, master)
- TLSConnect (6.0, 7.0, master)
- TLSAccept (6.0, 7.0, master)
- TLSCAFile (6.0, 7.0, master)
- TLSCRLFile (6.0, 7.0, master)
- TLSServerCertIssuer (6.0, 7.0, master)
- TLSServerCertSubject (6.0, 7.0, master)
- TLSCertFile (6.0, 7.0, master)
- TLSKeyFile (6.0, 7.0, master)
- TLSPSKIdentity (6.0, 7.0, master)
- TLSPSKFile (6.0, 7.0, master)
- ForceActiveChecksOnStart (only agent2 param, actual for 7.0, master)
Maybe more.
IMHO it would be nice to validate empty parameters because it is useful for troubleshooting.