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

Default value of zabbix_agent_include breaks userparameter task #1322

Closed
Thulium-Drake opened this issue Jul 5, 2024 · 0 comments · Fixed by #1323
Closed

Default value of zabbix_agent_include breaks userparameter task #1322

Thulium-Drake opened this issue Jul 5, 2024 · 0 comments · Fixed by #1323

Comments

@Thulium-Drake
Copy link
Contributor

Thulium-Drake commented Jul 5, 2024

SUMMARY

The default path used for zabbix_agent_include is /etc/zabbix/zabbix_agent2.d/*.conf (in the case of agent2), which is also used in

dest: "{{ zabbix_agent_include }}/userparameter_{{ item.name }}.conf"
.

Which leads to the following error:

TASK [community.zabbix.zabbix_agent : Install user-defined userparameters] **************************************
failed: [virt1.zm1.element-networks.nl] (item={'name': 'zfs'}) => changed=false 
  ansible_loop_var: item
  checksum: d6c05c4b437828b38559acf1e50e8ac3e89098d8
  item:
    name: zfs
  msg: Destination directory /etc/zabbix/zabbix_agent2.d/*.conf does not exist

The issue is resolved when the zabbix_agent_include is set to /etc/zabbix/zabbix_agent2.d. This does not break the include logic of the Zabbix agent, it will still include all files in the configured directory.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

zabbix_agent

ANSIBLE VERSION

CONFIGURATION

OS / ENVIRONMENT / Zabbix Version
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

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

Successfully merging a pull request may close this issue.

1 participant