Tomcat 7.x Web アプリケーション サーバー用の Web モジュール

Microsoft.JEE.Tomcat.7.Application.Discovery (Discovery)

Tomcat Web アプリケーション サーバー 7.x 構成上にインストールされたアプリケーション (Web モジュール) を検出します。

Knowledge Base article:

概要

このアプリケーション検出では、Tomcat Web アプリケーション サーバー構成に関連付けられている Web モジュールを検出します。

検出は MBean を使用して次のクエリで実行されます:

このクエリは、Tomcat 7.x 上の検出と同じです。 Tomcat 7.x 用には、返される MBean が異なるため、検出が別途用意されています。

Tomcat 7.x の場合、既定のディストリビューションでは JMX 監視を使用できません。Tomcat の監視および管理の詳細については、Tomcat 7.x のドキュメントを参照してください。

Element properties:

TargetMicrosoft.JEE.Tomcat.7.Monitored.Configuration
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.JEE.Discovery.MBeans.DataSource Default

Source Code:

<Discovery ID="Microsoft.JEE.Tomcat.7.Application.Discovery" Target="Microsoft.JEE.Tomcat.7.Monitored.Configuration" Remotable="true" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.JEE.Tomcat.7.Application"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="JEE!Microsoft.JEE.Discovery.MBeans.DataSource">
<ApplicationServerGuid>$Target/Id$</ApplicationServerGuid>
<ComputerName>$Target/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/HostName$</ComputerName>
<Protocol>$Target/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/Protocol$</Protocol>
<Port>$Target/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/Port$</Port>
<BaseURL/>
<JMXQuery>Catalina:j2eeType=WebModule,*</JMXQuery>
<AdditionalArguments>&amp;MaxDepth=0</AdditionalArguments>
<ReturnMultiplePropertyBags>true</ReturnMultiplePropertyBags>
<UseAttributesInKeysOfReturnedPropertyBags>false</UseAttributesInKeysOfReturnedPropertyBags>
<!-- Interval currently set to four hours -->
<IntervalSeconds>14400</IntervalSeconds>
<TimeoutSeconds>900</TimeoutSeconds>
<ClassId>$MPElement[Name="Microsoft.JEE.Tomcat.7.Application"]$</ClassId>
<InstanceSettings>
<Settings>
<!-- The following properties are defined for the Application's parent classes -->
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Data/Property[@Name='/MBeans/org.apache.catalina.mbeans.ContextMBean/objectNameElements/name']$</Value>
</Setting>
<!-- These properties are for the Tomcat Configuration -->
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Instance"]/Id$</Name>
<Value>$Target/Host/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Instance"]/Id$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Instance"]/HostName$</Name>
<Value>$Target/Host/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Instance"]/HostName$</Value>
</Setting>
<!-- The following properties are defined for the Application -->
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/ApplicationName$</Name>
<Value>$Data/Property[@Name='/MBeans/org.apache.catalina.mbeans.ContextMBean/objectNameElements/name']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/j2eeType$</Name>
<Value>$Data/Property[@Name='/MBeans/org.apache.catalina.mbeans.ContextMBean/objectNameElements/j2eeType']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/ObjectName$</Name>
<Value>$Data/Property[@Name='/MBeans/org.apache.catalina.mbeans.ContextMBean/objectName']$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>