Monitor de Status do Servidor do Servidor MySQL

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

Monitor de Status do Servidor MySQL

Knowledge Base article:

Resumo

O Servidor MySQL não está em execução ou o módulo de monitoramento está inacessível.

Causas

O Servidor MySQL pode ter sido interrompido, falhado ou o provedor pode ter sido descarregado.

Resoluções

Se o Servidor MySQL não estiver executando, reinicie o Servidor MySQL. Se o servidor estiver executando, verifique se o status operacional não mostra um estado degradado ou inacessível. Além disso, verifique se as credenciais do MySQL foram definidas pelo Pacote de Gerenciamento ou pelo programa de linha de comando de autenticação incluído do MySQL.

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 do Servidor MySQL
O Servidor MySQL {0} está offline, não monitorado ou configurado corretamente
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>