Monitor LogDirectorySize ApacheTomcat

Windows.Server.Webservice.LogdirectoryWatcher.Monitor.LogDirectorySize.ApacheTomcat (UnitMonitor)

Monitors the size an ApacheTomcat web service - log folder.

Element properties:

TargetWindows.Server.Webservice.LogdirectoryWatcher.WebSite.ApacheTomcat
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeWindows.Server.Webservice.LogdirectoryWatcher.Monitor.ThreeState.Test.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
ApacheTomcat WebSite's LogDirectory size limit reached
ApacheTomcat WebSite's LogDirectory size limit reached


TestedAt: {0}

{1}


Computer Description: {2}

Windows Version: {3}
RunAsDefault

Source Code:

<UnitMonitor ID="Windows.Server.Webservice.LogdirectoryWatcher.Monitor.LogDirectorySize.ApacheTomcat" Accessibility="Public" Enabled="true" Target="Windows.Server.Webservice.LogdirectoryWatcher.WebSite.ApacheTomcat" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows.Server.Webservice.LogdirectoryWatcher.Monitor.ThreeState.Test.MonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Windows.Server.Webservice.LogdirectoryWatcher.Monitor.LogDirectorySize.ApacheTomcat.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='testedAt']$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='Supplement']$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='ComputerDescription']$</AlertParameter3>
<AlertParameter4>$Data/Context/Property[@Name='WindowsVersion']$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderThreshold" MonitorTypeStateID="UnderThreshold" HealthState="Success"/>
<OperationalState ID="OverWarningThreshold" MonitorTypeStateID="OverWarningThreshold" HealthState="Warning"/>
<OperationalState ID="OverErrorThreshold" MonitorTypeStateID="OverErrorThreshold" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<MonitorItem>ApacheTomcat</MonitorItem>
<Key>$Target/Property[Type="Windows.Server.Webservice.LogdirectoryWatcher.WebSite.ApacheBase"]/Key$</Key>
<WarningThresholdMegaBytes>1000</WarningThresholdMegaBytes>
<ErrorThresholdMegaBytes>2000</ErrorThresholdMegaBytes>
</Configuration>
</UnitMonitor>