Skip to content

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

Open
@tolgaulas

Description

@tolgaulas
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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingroleThe issue or pull request is related to Zabbix role

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions