Statusmonitor server voor MySQL-server

Microsoft.MySQLServer.ManagedServer.Unix.ServerStatus.Monitor (UnitMonitor)

Statusmonitor MySQL-server

Knowledge Base article:

Samenvatting

De MySQL-server werkt niet of de bewakingsmodule is niet bereikbaar.

Oorzaken

De MySQL-server is mogelijk gestopt of vastgelopen of de provider is mogelijk verwijderd.

Oplossingen

Als de MySQL-server niet wordt uitgevoerd, start u de MySQL-server opnieuw. Als de server wordt uitgevoerd, controleert u of de werkingsstatus van de server niet verslechterd of onbereikbaar is. Zorg ook dat de referenties voor MySQL zijn ingesteld met de taak in het management pack of via het meegeleverde opdrachtregelprogramma voor MySQL-verificatie.

Element properties:

TargetMicrosoft.MySQLServer.ManagedServer.Unix
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Oss.WSMan.Status.Filtered.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Status MySQL-server
De MySQL-server {0} is offline, wordt niet bewaakt of is juist geconfigureerd
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.MySQLServer.ManagedServer.Unix.ServerStatus.Monitor" Accessibility="Public" Target="Microsoft.MySQLServer.ManagedServer.Unix" TypeID="Oss!Microsoft.Oss.WSMan.Status.Filtered.MonitorType" Enabled="onStandardMonitoring" ParentMonitorID="Health!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.MySQLServer.ManagedServer.Unix.ServerStatus.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/WsManData/*[local-name(.)='MySQL_Server']/*[local-name(.)='InstanceID']$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="StatusOK" ID="StatusOK"/>
<OperationalState HealthState="Error" MonitorTypeStateID="StatusFailed" ID="StatusFailed"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/MySQL_Server?__cimnamespace=root/mysql</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<InstanceName>$Target/Property[Type="Microsoft.MySQLServer.Installation"]/InstanceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='MySQL_Server']/*[local-name(.)='ProductIdentifyingNumber']</InstanceProperty>
<Status>/DataItem/WsManData/*[local-name(.)='MySQL_Server']/*[local-name(.)='OperatingStatus']</Status>
<ExpectedStatus>OK</ExpectedStatus>
</Configuration>
</UnitMonitor>