Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting Hostname and HostnameItem causes a warning on agentd start #80

Closed
f0 opened this issue Apr 20, 2015 · 1 comment
Closed

setting Hostname and HostnameItem causes a warning on agentd start #80

f0 opened this issue Apr 20, 2015 · 1 comment

Comments

@f0
Copy link
Contributor

f0 commented Apr 20, 2015

Hostname and HostnameItem are both set by default, this leads into this warning:

Shutting down Zabbix agent: [ OK ]
Starting Zabbix agent: zabbix_agentd [3912]: Warning: both Hostname and HostnameItem defined, using [xxx]

HostnameItem should not set by default, and Hostname should be disabled when HostnameItem is set

@f0
Copy link
Contributor Author

f0 commented Apr 20, 2015

one fix is to disable the HostnameItem when the Hostname is defined
<% if !@hostname -%>
HostnameItem=<%= @hostnameitem %>
<% end -%>

but the Hostname defaults to $fqdn, the HostnameItem is always disabled.
i think it should be no default for the hostname

hostname is not set -> defaults to hostnameItem (actual zabbix behaviour)
hostname is set -> hostname is used instead of HostnameItem (actual zabbix behaviour)

dj-wasabi added a commit that referenced this issue Apr 20, 2015
Fixes #80 setting Hostname and HostnameItem causes a warning on agentd s...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant