M365 Supplemental Watcher Node Discovery

M365SL.WatcherNode.Discovery (Discovery)

Description for the new discovery.

Knowledge Base article:

Summary

Will discover the M365 Watcher Node instance(s).

Additional

There is no limit to the number of M365 tenants that can be configured for discovery.

External

https://MonitoringGuys.com

Overridable Parameters

Name

Description

Default Value

IntervalSeconds

The frequncy of the workflow.

3600

PoshLibraryPath

For customer support engineer use only.

ProbeActionTimeoutSeconds

If the workflow module does not exit gracefully by this time limit, the module will be forced to terminate.

180

SyncTime

This can be set to force a workflow to synchronize its Interval to a specific start time. If no SyncTime value is provided to the workflow, the workflow will be initiated at the agent's earliest opportunity after receiving a configuration change or restarting. Typically no SyncTime is preferred. Format is 00:00. Example for 5:36pm: 17:36. Example for 2:15am: 02:15.

WriteToEventLog

This will enable/disable script logging to the Operations Manager event log.

false

Element properties:

TargetMicrosoft.Windows.Computer
EnabledTrue
Frequency3600
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
  • M365SL.WatcherNode
    • Location
    • MgmtGroupRegKey
    • TenantName
    • M365_ClientID
    • M365_ClientSecret
    • DisplayName

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource M365SL.WatcherNode.POSH.Discovery.DS Default

Source Code:

<Discovery ID="M365SL.WatcherNode.Discovery" Target="Windows!Microsoft.Windows.Computer" Enabled="true" ConfirmDelivery="false" Remotable="false" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="M365SL.WatcherNode">
<Property TypeID="M365SL.WatcherNode" PropertyID="Location"/>
<Property TypeID="M365SL.WatcherNode" PropertyID="MgmtGroupRegKey"/>
<Property TypeID="M365SL.WatcherNode" PropertyID="TenantName"/>
<Property TypeID="M365SL.WatcherNode" PropertyID="M365_ClientID"/>
<Property TypeID="M365SL.WatcherNode" PropertyID="M365_ClientSecret"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="M365SL.WatcherNode.POSH.Discovery.DS" Comment=".">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<IntervalSeconds>3600</IntervalSeconds>
<MgmtGroupRegKey>HKLM\SOFTWARE\Microsoft\Microsoft Operations Manager\MP\M365SSM\MgmtGroups\$Target/ManagementGroup/Name$\WatcherNode</MgmtGroupRegKey>
<PoshLibraryPath/>
<ProbeActionTimeoutSeconds>180</ProbeActionTimeoutSeconds>
<SyncTime/>
<WorkflowName>M365SL.WatcherNode.Discovery</WorkflowName>
<WriteToEventLog>false</WriteToEventLog>
</DataSource>
</Discovery>