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

zabbix_agent_enableremotecommands should not be the default as enableremotecommands is depreciated since zabbix 6.x and failing at 7.x #1444

Open
tolgaulas opened this issue Jan 16, 2025 · 1 comment

Comments

@tolgaulas
Copy link

SUMMARY

Since Zabbix 6.x+, the enableremotecommands is depreciated hence it should not be the default.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

RUNNING HANDLER [community.zabbix.zabbix_agent : restart zabbix-agent] ***********************************************************************************************************************************************************************************************************************
fatal: [hostA_operatorA_companyA]: FAILED! => {"changed": false, "msg": "Unable to restart service zabbix-agent: Job for zabbix-agent.service failed because the control process exited with error code.\nSee "systemctl status zabbix-agent.service" and "journalctl -xeu zabbix-agent.service" for details.\n"}

ANSIBLE VERSION
ansible --version
ansible [core 2.18.1]
  config file = /abcvyz/ansible/ansible.cfg
  configured module search path = ['/home/tolgaulas/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/tolgaulas/.local/pipx/venvs/ansible/lib/python3.11/site-packages/ansible
  ansible collection location = /home/tolgaulas/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/tolgaulas/.local/bin/ansible
  python version = 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] (/home/tolgaulas/.local/pipx/venvs/ansible/bin/python)
  jinja version = 3.1.5
  libyaml = True
CONFIGURATION

OS / ENVIRONMENT / Zabbix Version

zabbix_agentd (daemon) (Zabbix) 7.0.8

STEPS TO REPRODUCE
- include_role:
    name: community.zabbix.zabbix_agent
  vars:
    zabbix_agent_server: 
    zabbix_agent_serveractive: my.zabbix.server
EXPECTED RESULTS

The /etc/zabbix/zabbix_agentd.conf should not have EnableRemoteCommands parameter (or not default)

ACTUAL RESULTS
RUNNING HANDLER [community.zabbix.zabbix_agent : restart zabbix-agent] ***********************************************************************************************************************************************************************************************************************
fatal: [....]: FAILED! => {"changed": false, "msg": "Unable to restart service zabbix-agent: Job for zabbix-agent.service failed because the control process exited with error code.\nSee \"systemctl status zabbix-agent.service\" and \"journalctl -xeu zabbix-agent.service\" for details.\n"}

@tolgaulas
Copy link
Author

Until fix, this mandatory variable fixes:

- include_role:
    name: community.zabbix.zabbix_agent
  vars:
    zabbix_agent_enableremotecommands: null
    ...

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