Ad Widget

Collapse

Installing Zabbix agent and adding host to zabbix via ansible

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • silkyfyre
    Junior Member
    • Jun 2024
    • 1

    #1

    Installing Zabbix agent and adding host to zabbix via ansible

    Hello,

    I am using the zabbix.zabbix.{agent,host} roles in ansible to install the zabbix agent and add the host to my zabbix server. The agent install appears to be successful and it continues to the zabbix host role where I am getting a failure. The message says "ImportError: cannot import name 'CertificateError' from 'ansible.module_utils.urls'". At first I though this was caused by the fact that my zabbix server is behind a proxy but I changed the config to connect to the server directly and received the same error. I am connecting over SSL using a wildcard certificate for my domain. I am using the host_zabbix_api_use_ssl variable set to true. I have tried setting host_zabbix_api_validate_certs to both true and false and receive the same error with both.

    I am running zabbix server 7.0.0 on debian 12. The host I am installing the agent onto is also running debian 12.

    Thank you in advance for the help,
    Susan
  • DrMoe
    Junior Member
    • Apr 2023
    • 10

    #2
    I have exactly the same error. With 6.4 everything went fine but with 7.0 it seems to be broken..
    Do you have found a solution?

    Comment

    Working...