r0bj / ansible-zabbix-api

Ansible role to synchronize host data with Zabbix API
GNU General Public License v2.0
22 stars 10 forks source link

Cannot set custom zabbix-agent port #6

Open SergeyBear opened 8 years ago

SergeyBear commented 8 years ago

When adding zabbix host to zabbix-server agent port is hardcoded to 10050.

SergeyBear commented 8 years ago

I tried to solve this problem by myself but I'm not very familiar with python, so it looks littlebit clumsy :-)

Here is a diff zabbix-api.diff.txt

SergeyBear commented 8 years ago

With this patch following variables can be used to specify zabbix-agent and jmx ports for remote host: zabbix-api: ... port1=10050 port4=12345 ...

May be it'll help someone

r0bj commented 8 years ago

Thanks @SergeyBear