[ZBX-14371] Ability to monitor WebLogic server Created: 2013 Sep 25  Updated: 2024 Apr 10  Resolved: 2018 Nov 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Java gateway (J)
Affects Version/s: None
Fix Version/s: 4.0 (plan)

Type: Documentation task Priority: Minor
Reporter: Kodai Terashima Assignee: Vjaceslavs Bogdanovs
Resolution: Fixed Votes: 2
Labels: jmx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team C
Sprint: Sprint 46, Nov 2018
Story Points: 0

 Description   

Java gateway server only support RMI protocol, but WebLogic doesn't support RMI. It's necessary to use IIOP protocol.
http://docs.oracle.com/cd/E13222_01/wls/docs90/jmx/accessWLS.html

Also, there is a difference in environment parameter of JMXConnectorFactory.connect method for WebLogic JMX

Current java gateway code:

env = new HashMap<String, String[]>();
env.put(JMXConnector.CREDENTIALS, new String[]

{username, password}

);

Sample code from WebLogic documentation:

Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, username);
h.put(Context.SECURITY_CREDENTIALS, password);
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");



 Comments   
Comment by dimir [ 2017 Apr 24 ]

Related issue: ZBXNEXT-1274 .

Comment by Tommi Palomäki [ 2018 May 17 ]

Zabbix v3.4 supports monitoring WebLogic server. You need to add wlfullclient.jar to Java Gateway's classpath and use a custom JMX endpoint in item configuration, like the following:

service:jmx:iiop://{HOST.CONN}:{HOST.PORT}/jndi/weblogic.management.mbeanservers.domainruntime

I think this issue can be closed.

Comment by Tommi Palomäki [ 2018 May 17 ]

In more detail, what we have done with zabbix java gateway in order to get WebLogic monitoring to work:

 

Comment by Vjaceslavs Bogdanovs [ 2018 Jul 10 ]

(1) [D] Discussed with palivoda and decided to document configuration scenario like it is described here: https://blog.zabbix.com/new-monitoring-possibilities-for-java-applications-in-zabbix-3-4/5972/ (that for specific protocols it is required to copy jars, etc).

martins-v Added to documentation. Please review. RESOLVED

vjaceslavs It looks more like a blog article than like a documentation page. Are you sure that all the "Error again." and "What is it this time?" should be included here?

REOPENED

martins-v You're right. I've cleaned up a bit. RESOLVED

vjaceslavs CLOSED

Comment by Vjaceslavs Bogdanovs [ 2018 Jul 10 ]

Additional example can be found here: https://blog.zabbix.com/new-monitoring-possibilities-for-java-applications-in-zabbix-3-4/5972/

Generated at Wed Apr 30 06:57:38 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.