laradji/zabbix — pull request #183 by swalberg (2014-09-05 13:36:39+00:00)
Title: Move interface ports to attributes and fix NME problem in autoreg

This PR improves the agent autoregistration to allow the ports to be set. My primary use was to set the JMX port, but I also allowed for the Zabbix agent and snmp ports to be overridden. The defaults keep the same behaviour as originally hard-coded.

At the same time I applied https://github.com/MurgaNikolay/zabbix/commit/23b79c38293f4515a4ba421722d73e4f25f6acfc which fixes a bug in the agent autoregistration. `interfaces` is an array and doesn't support the `values` method.