Modules Web pour le serveur d'applications Web Tomcat 5.x

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

Détecte les applications (modules Web) installées sur une configuration de serveur d'applications Web Tomcat 5.x.

Knowledge Base article:

Résumé

La fonctionnalité de détection d'applications détecte les modules Web associés à une configuration de serveur d'applications Web Tomcat.

La découverte se produit à l'aide de MBeans avec la requête suivante :

Cette requête est identique à la découverte de Tomcat 5.x. Il existe une découverte distincte pour Tomcat 5.x car les MBeans retournés sont différents.

Pour Tomcat 5.x, la distribution par défaut n'expose pas l'accès à la surveillance JMX. Consultez la documentation de Tomcat 5.x pour obtenir des informations sur la surveillance et la gestion de Tomcat.

Element properties:

TargetMicrosoft.JEE.Tomcat.5.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.5.Application.Discovery" Target="Microsoft.JEE.Tomcat.5.Monitored.Configuration" Remotable="true" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.JEE.Tomcat.5.Application"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="JEE!Microsoft.JEE.Discovery.MBeans.DataSource">
<ApplicationServerGuid>$Target/Host/Property[Type="JEE!Microsoft.JEE.ApplicationServer.Instance"]/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.5.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.commons.modeler.BaseModelMBean/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.commons.modeler.BaseModelMBean/objectNameElements/name']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/j2eeType$</Name>
<Value>$Data/Property[@Name='/MBeans/org.apache.commons.modeler.BaseModelMBean/objectNameElements/j2eeType']$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.Application"]/ObjectName$</Name>
<Value>$Data/Property[@Name='/MBeans/org.apache.commons.modeler.BaseModelMBean/objectName']$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>