Отслеживаемая конфигурация для сервера веб-приложений Tomcat (дополнительные атрибуты)
Microsoft.JEE.Tomcat.Monitored.Configuration.Discovery (Discovery)
Обнаружение дополнительных атрибутов отслеживаемой конфигурации сервера веб-приложений Tomcat.
Knowledge Base article:
Element properties:
Object Discovery Details:
Member Modules:
Source Code:
<Discovery ID="Microsoft.JEE.Tomcat.Monitored.Configuration.Discovery" Target="Microsoft.JEE.Tomcat.Monitored.Configuration" Enabled="true" Remotable="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.JEE.Tomcat.Monitored.Configuration"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="JEE!Microsoft.JEE.Discovery.UrlProbe.Stats.DataSource">
<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/>
<URLSuffix>/Info</URLSuffix>
<!-- Interval currently set to four hours -->
<IntervalSeconds>14400</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<ClassId>$MPElement[Name="Microsoft.JEE.Tomcat.Monitored.Configuration"]$</ClassId>
<InstanceSettings>
<Settings>
<!-- 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>
<!-- These properties are for the Monitored Tomcat Configuration-->
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/OSName$</Name>
<Value>$Data/Info/OperatingSystem/Properties/Name$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/OSVersion$</Name>
<Value>$Data/Info/OperatingSystem/Properties/Version$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/OSArchitecture$</Name>
<Value>$Data/Info/OperatingSystem/Properties/Architecture$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMName$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/Name$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMVersion$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/Version$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMVendorName$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/VendorName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMBuildVersion$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/BuildVersion$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMClassPath$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/ClassPath$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMLibraryPath$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/LibraryPath$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMStartupOption$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/StartupOption$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMJavaInstallDirectory$</Name>
<Value>$Data/Info/JavaVirtualMachine/Properties/JavaInstallDirectory$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JVMHeapSize$</Name>
<Value>$Data/Info/JVMMemory/Properties/MaxHeapSize$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="JEE!Microsoft.JEE.ApplicationServer.Monitored.Instance"]/JEEServerName$</Name>
<Value>$Data/Info/JEEServer/Properties/AppServerName$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>