Editing the WeblogicSensor2.xml file
You must edit the WeblogicSensor2.xml file.
The configuration file is located in the following directories:
- On Linux®, Solaris, AIX®, and Linux on System z® operating systems, the file is in the $COLLATION_HOME/etc/discover-sensors/ directory.
- On Windows operating systems, the file is in the %COLLATION_HOME%\etc\discover-sensors\ directory.
Use the following tags to edit the WeblogicSensor2.xml file:
<SensorPlugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ibm.com/xml/schemas/taddm/FixedSensorSchema.xsd">
<name>WeblogicSensor2</name>
<osgiId>com.ibm.cdb.discover.sensor.app.j2ee.weblogic2_7.1.0</osgiId>
<sensorClassName>com.collation.discover.agent.app.j2ee.WeblogicAgent2</sensorClassName>
<seedClassName>com.collation.discover.seed.app.j2ee.WeblogicSeed2</seedClassName>
<resultClassName>com.collation.discover.result.app.j2ee.WeblogicServerResult2</resultClassName>
<convertorClassName>com.collation.discover.engine.seedfactory.SoftwareConvertor</convertorClassName>
<defaultProfiles>
<profile>Level 3 Discovery</profile>
</defaultProfiles>
<configuration className="com.ibm.cdb.discover.sensor.configuration.WeblogicServerAgent2Configuration">
<allowSensorToBePooledInJVM>true</allowSensorToBePooledInJVM>
<domains>
<item>
<domainAddress>
<address>DOMAIN_IP</address>
<port>DOMAIN_PORT</port>
</domainAddress>
<addresses>
<item>
<address>IP_OF_FIRST_INTERFACE_ADMIN_SERVER_IS_USING</address>
<port>PORT_ ADMIN_SERVER_IS_USING </port>
</item>
<item>
<address>IP_OF_SECOND_INTERFACE_ADMIN_SERVER_IS_USING</address>
<port>PORT_ ADMIN_SERVER_IS_USING </port>
</item>
</addresses>
</item>
</domains>
</configuration>
</SensorPlugin>
You can use this configuration when the WebLogic server is using multiple interfaces on the Domain Admin Server.
In this case, the value of DOMAIN_IP
and DOMAIN_PORT
is
used instead of IP_OF_FIRST_INTERFACE_ADMIN_SERVER_IS_USING:PORT_
ADMIN_SERVER_IS_USING
and IP_OF_SECOND_INTERFACE_ADMIN_SERVER_IS_USING:PORT_
ADMIN_SERVER_IS_USING
.