MSSQL 2017 on Linux: Discover SQL Server 2017 Agent for a Database Engine

Microsoft.SQLServer.2017.Linux.Discovery.Agent (Discovery)

This rule discovers the SQL Server Agent for an instance of SQL Server 2017 DB Engine on Linux. There could be only one SQL Server Agent instance for each DB Engine instance.

Knowledge Base article:

Summary

This rule discovers the SQL Server Agent for an instance of SQL Server 2017 DB Engine on Linux. There could be only one SQL Server Agent instance for each DB Engine instance.

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

Yes

Interval (seconds)

The recurring interval of time in seconds in which to run the workflow.

14400

Synchronization Time

Synchronization Time

 

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Timeout for database connection (seconds)

The workflow will fail and register an event, if it cannot access the database during the specified period.

15

Element properties:

TargetMicrosoft.SQLServer.2017.Linux.DBEngine
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2017.Linux.DataSource.AgentDiscovery Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2017.Linux.Discovery.Agent" Target="Microsoft.SQLServer.2017.Linux.DBEngine" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2017.Linux.Agent"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2017.Linux.DataSource.AgentDiscovery">
<MachineName>$Target/Property[Type="SQL2017L!Microsoft.SQLServer.2017.Library.DBEngine"]/MachineName$</MachineName>
<InstanceName>$Target/Property[Type="SQL2017L!Microsoft.SQLServer.2017.Library.DBEngine"]/InstanceName$</InstanceName>
<ConnectionString>$Target/Property[Type="SQL2017L!Microsoft.SQLServer.2017.Library.DBEngine"]/ConnectionString$</ConnectionString>
<InstanceEdition>$Target/Property[Type="SQL2017L!Microsoft.SQLServer.2017.Library.DBEngine"]/Edition$</InstanceEdition>
<SqlTimeoutSeconds>15</SqlTimeoutSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<IntervalSeconds>14400</IntervalSeconds>
<SyncTime/>
</DataSource>
</Discovery>