Zabbix Monitor Windows Kafka
The main use of Zabbix monitoring Kafka is the Zabbix Java gateway.
Install Zabbix Gateway. Using Ubuntu, you can install the Java gateway directly using commands.
Apt-get Install Zabbix-java-gateway
Modify the Zabbix_server configuration file, tell the Zabbix server Java gateway on which port, and set the number of Poller.
javagateway= Install IP
javagatewayport=10052 #监听端口
startjavapollers=5
Open Java Gateway, restart Zabbix server
Service Zabbix-java-gateway start
service zabbix-server restart
Set Kafka, turn on JMX.
Find the Kafka-server-start.bat file under Bin\windows, in
IF ["%kafka_heap_opts%"] EQU ["] (
set kafka_heap_opts=-xmx1g-xms1g
)
The next plus set jmx_port=9999 becomes
IF ["%kafka_heap_opts%"] EQU ["] (
set kafka_heap_opts=-xmx1g-xms1g
set jmx_port=9999
)
Configuring the Host
The JMX port must be the same as Jmx_port.
Link Kafka template.