Détection des travaux de l’Agent SQL Server 2012

Microsoft.SQLServer.2012.AgentJobDiscoveryRule (Discovery)

Cette détection des objets permet de détecter tous les travaux de l’Agent SQL Server 2012. La détection est désactivée par défaut.

Knowledge Base article:

Résumé

Cette détection des objets permet de détecter tous les travaux de l’Agent SQL Server 2012. La détection est désactivée par défaut.

Configuration

Remplacez cette détection sur certaines instances ou sur des groupes pour permettre la détection des travaux de l’Agent SQL Server 2012.

Element properties:

TargetMicrosoft.SQLServer.2012.Agent
EnabledFalse
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2012.AgentJobDiscovery Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2012.AgentJobDiscoveryRule" Enabled="false" Target="Microsoft.SQLServer.2012.Agent">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2012.AgentJob">
<Property TypeID="SQL!Microsoft.SQLServer.AgentJob" PropertyID="JobID"/>
<Property TypeID="SQL!Microsoft.SQLServer.AgentJob" PropertyID="Name"/>
<Property TypeID="SQL!Microsoft.SQLServer.AgentJob" PropertyID="Description"/>
<Property TypeID="SQL!Microsoft.SQLServer.AgentJob" PropertyID="Category"/>
<Property TypeID="SQL!Microsoft.SQLServer.AgentJob" PropertyID="Owner"/>
<Property TypeID="SQL!Microsoft.SQLServer.AgentJob" PropertyID="OriginatingServer"/>
<Property TypeID="SQL!Microsoft.SQLServer.AgentJob" PropertyID="IsEnabled"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2012.AgentJobDiscovery">
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
<ComputerID>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerID>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<SQLConnectionString>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ConnectionString$</SQLConnectionString>
<SQLInstanceName>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.ServerRole"]/InstanceName$</SQLInstanceName>
<ServiceName>$Target/Property[Type="SQL!Microsoft.SQLServer.Agent"]/ServiceName$</ServiceName>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>