zabbix-java-gateway(1)
π zabbix-java-gateway(1) π
okay bestie, pull up a chair, we're reading the manual page for zabbix-java-gateway(1) and honestly? it's giving main character energy. β¨
πΈ NAME πΈ
zabbix-java-gateway.jar β the Zabbix Java/JMX monitoring agent. yes she's a whole daemon and yes she's iconic for it π
π USAGE π
/etc/init.d/zabbix-java-gateway [ start|stop|restart|status ]
that's it, that's the whole vibe. four little verbs and she's running your life π«Ά
β¨ DESCRIPTION β¨
okay so. "Zabbix Java gateway" is a daemon whose whole job is collecting information from a JMX agent. π§
here's the tea: when the Zabbix server is like "bestie what's the value of this particular JMX counter on this host π", it asks the Zabbix Java gateway, and the gateway uses the JMX management API to go query the application of interest remotely. and the best part?? the application needs zero additional software installed. nothing. nada. it just has to be started with the -Dcom.sun.management.jmxremote option to Java on the command line. that's the whole requirement. we love a low-maintenance queen. π
Java gateway accepts incoming connections from Zabbix server or proxy and can only be used as a "passive proxy". now, as opposed to Zabbix proxy, it may also be used from Zabbix proxy β because (and this is important, don't @ me) Zabbix proxies cannot be chained. π«
access to each Java gateway is configured directly in the Zabbix server or proxy configuration file, which means only one Java gateway may be configured per Zabbix server or Zabbix proxy. one. singular. monogamous. π
and if a host has items of type JMX agent and items of other type? only the JMX agent items will be passed to Java gateway for retrieval. the rest get left on read. π
when an item has to be updated over Java gateway, Zabbix server or proxy will connect to the Java gateway and request the value, which Java gateway in turn retrieves and passes back to the server or proxy. and as such β say it with me β Java gateway does not cache any values. no hoarding, no saving things for later, she's present in the moment, mindfulness queen π§
Zabbix server or proxy has a specific type of processes that connect to Java gateway, controlled by the option "StartJavaPollers". internally, Java gateway starts multiple threads, controlled by the START_POLLERS option. now on the server side, if a connection takes more than Timeout seconds, it will be terminated β but plot twist π β Java gateway might still be busy retrieving the value from the JMX counter. she's still working, the connection just left the group chat.
Zabbix server or proxy will try to pool requests to a single JMX target together as much as possible (this is affected by item intervals, fyi) and send them to the Java Gateway in a single connection for better performance. efficiency era. π₯
and here's the advice you actually need: it is suggested to have "StartJavaPollers" less than or equal to START_POLLERS. otherwise there might be situations when no threads are available in the Java gateway to service incoming requests. and nobody wants that. it's giving overwhelmed. π
β OPTIONS β
-V,--versionβ display version number. short, sweet, slays.
π JAVA OPTIONS π
zabbix-java-gateway.jar recognises the following Java options:
-Dzabbix.pidFile-Dlogback.configurationFileβ example:-Dlogback.configurationFile=/etc/zabbix/logback.xml-Dzabbix.listenIP-Dzabbix.listenPort-Dzabbix.startPollers
π¦ CONFIGURATION FILES π¦
/etc/zabbix/logback.xmlβ logging configuration./etc/zabbix/zabbix_java_gateway.confβ miscellaneous parameters.
π SEE ALSO π
- <https://www.zabbix.com/documentation/5.0/manual/config/items/itemtypes/jmx_monitoring>
- <https://www.zabbix.com/documentation/5.0/manual/concepts/java>
and that's the page, bestie π this one's zabbix 2.2.0, dated November 2013 β so yeah, she's been serving since 2013 and she has not missed a day. periodt. πβ¨π«Ά
π¦ where this page comes from
- debian bookworm: zabbix-java-gateway 1:6.0.14+dfsg-1 Β· GPL-2.0-or-later
- debian trixie: zabbix-java-gateway 1:7.0.22+dfsg-1~deb13u1 Β· AGPL-3.0-only
- ubuntu jammy: zabbix-java-gateway 1:5.0.17+dfsg-1 Β· GPL-2.0-or-later
- ubuntu questing: zabbix-java-gateway 1:7.0.10+dfsg-2build1
- ubuntu resolute: zabbix-java-gateway 1:7.0.22+dfsg-1 Β· AGPL-3.0-only
- ubuntu stonking: zabbix-java-gateway 1:7.0.27+dfsg-1 Β· AGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms