Mike Hogan
Mike Hogan

Reputation: 10603

Zabbix JMX monitoring with agent auto-registration

I can see how to configure a jmx server for a host using the zabbix UI. I must enter the host IP address and port.

My use case has many aws ec2 instances that come and go according to scaling requirements, so I want these instances to auto-register with the zabbix server. I can find no way to get these instances to tell the zabbix server to monitor their jmx server.

So in summary, how does a zabbix agent say to the zabbix server "my jmx server is at this IP address and on this port"?

I am using zabbix 2.2.

Upvotes: 0

Views: 1559

Answers (1)

Raymond Kuiper
Raymond Kuiper

Reputation: 26

Unfortunately there is no easy solution for this afaik. However, it can be done mostly on the Zabbix server side using some scripting.

If you can make sure the agent sends the JMX data in it's metadata when auto registrating, you can parse that data to a script using the {HOST.METADATA} macro. The script can then create a JMX interface on the host via the Zabbix API.

I don't have a script ready for this, but it should be relatively easy to setup.

Good luck!

Raymond

Upvotes: 1

Related Questions