Operating System Available Megabytes Swap Space (Three State)

Microsoft.Unix.ExtendedMonitoring.OperatingSystem.AvailableMBytesSwap.Monitor (UnitMonitor)

Operating System Available Megabytes Swap Space Monitor(Three State)

Element properties:

TargetMicrosoft.Unix.OperatingSystem
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Unix.ExtendedMonitoring.WSMan.Performance.Filtered.Average.LessThanThreshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Available Megabytes Swap Space is too low
The threshold for the Swap Space\Available MBytes performance counter has been exceeded. The value that exceeded the threshold is: {0} Available MBytes.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Unix.ExtendedMonitoring.OperatingSystem.AvailableMBytesSwap.Monitor" Accessibility="Public" Target="Unix!Microsoft.Unix.OperatingSystem" TypeID="Microsoft.Unix.ExtendedMonitoring.WSMan.Performance.Filtered.Average.LessThanThreshold.MonitorType" Enabled="false" ParentMonitorID="SystemHealth!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Unix.ExtendedMonitoring.OperatingSystem.AvailableMBytesSwap.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="ThresholdOK" ID="ThresholdOK"/>
<OperationalState HealthState="Warning" MonitorTypeStateID="ThresholdWarning" ID="ThresholdWarning"/>
<OperationalState HealthState="Error" MonitorTypeStateID="ThresholdError" ID="ThresholdError"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_MemoryStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Memory</ObjectName>
<CounterName>Available MBytes Swap</CounterName>
<InstanceName>Memory</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_MemoryStatisticalInformation']/*[local-name(.)='Name']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='SCX_MemoryStatisticalInformation']/*[local-name(.)='AvailableSwap']$</Value>
<WarningThreshold>100</WarningThreshold>
<ErrorThreshold>50</ErrorThreshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>