I've got a strange issue. I am creating hosts using ansible community.zabbix.zabbix_host that works perfectly
When I remove the host and recreate it without a template (or just unlink the template) and add just a web scenario to it, the agent won't become available.
Furthermore, there is no error message. Nor on the client host in /var/log/zabbix/zabbix_agent2.log nor in the server log related to my.host.
Any ideas what's going wrong?
Code:
- name: configure zabbix hosts
community.zabbix.zabbix_host:
host_name: my.host
interfaces:
- type: 1
main: 1
useip: 0
dns: my.host.tld
port: "10050"
host_groups:
- Linux servers
link_templates:
- Linux by Zabbix agent
status: enabled
state: present
tls_psk_identity: my psk identify
tls_connect: 2
tls_accept: 2
tls_psk: "{{ lookup('onepassword', 'zabbix.agent.psk') }}"
Code:
- name: configure zabbix hosts
community.zabbix.zabbix_host:
host_name: my.host
interfaces:
- type: 1
main: 1
useip: 0
dns: my.host.tld
port: "10050"
host_groups:
- Linux servers
link_templates: []
status: enabled
state: present
tls_psk_identity: my psk identify
tls_connect: 2
tls_accept: 2
tls_psk: "{{ lookup('onepassword', 'zabbix.agent.psk') }}"
Furthermore, there is no error message. Nor on the client host in /var/log/zabbix/zabbix_agent2.log nor in the server log related to my.host.
Any ideas what's going wrong?
Comment