Squared Up EAM Windows service Monitoring Discovery provider data source

SquaredUp.EAM.Library.Datasource.NTServiceMonitoringDiscoveryProvider (DataSourceModuleType)

Discovers Windows service monitoring classes and the hosting object.

Element properties:

TypeDataSourceModuleType
IsolationAny
AccessibilityPublic
RunAsDefault
OutputTypeSystem.Discovery.Data

Member Modules:

ID Module Type TypeId RunAs 
Scheduler DataSource System.Discovery.Scheduler Default
Mapper ConditionDetection System.Discovery.ClassAndRelationshipSnapshotDataMapper Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
CheckStartupTypebool$Config/CheckStartupType$Check Startup TypeIf true the service will only be monitored if the start type is set to Automatic
IntervalSecondsint$Config/IntervalSeconds$Interval (Seconds)The number of seconds between discovery attempts.

Source Code:

<DataSourceModuleType ID="SquaredUp.EAM.Library.Datasource.NTServiceMonitoringDiscoveryProvider" Accessibility="Public" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Server" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ServiceName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DisplayName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CheckStartupType" type="xsd:boolean" minOccurs="1" maxOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:int" minOccurs="1" maxOccurs="1"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="CheckStartupType" ParameterType="bool" Selector="$Config/CheckStartupType$"/>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<DataSource ID="Scheduler" TypeID="System!System.Discovery.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval>$Config/IntervalSeconds$</Interval>
<SyncTime/>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
<ConditionDetection ID="Mapper" TypeID="System!System.Discovery.ClassAndRelationshipSnapshotDataMapper">
<ClassId>$MPElement[Name='SquaredUp.EAM.Library.Class.NTServiceMonitor.Configuration']$</ClassId>
<ClassInstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Config/DisplayName$ ($Config/Server$)</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Config/Server$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="SquaredUp.EAM.Library.Class.NTServiceMonitor.Configuration"]/ServiceName$</Name>
<Value>$Config/ServiceName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="SquaredUp.EAM.Library.Class.NTServiceMonitor.Configuration"]/CheckStartupType$</Name>
<Value>$Config/CheckStartupType$</Value>
</Setting>
</Settings>
</ClassInstanceSettings>
<RelationshipId>$MPElement[Name='SquaredUp.EAM.Library.Relationship.NTServiceMonitor.DependenciesNodeHostsNTServiceConfiguration']$</RelationshipId>
<SourceTypeId>$MPElement[Name='SquaredUp.EAM.Library.Class.DependenciesNode']$</SourceTypeId>
<SourceRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Config/Server$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>Dependency Monitoring</Value>
</Setting>
</Settings>
</SourceRoleSettings>
<TargetTypeId>$MPElement[Name='SquaredUp.EAM.Library.Class.NTServiceMonitor.Configuration']$</TargetTypeId>
<TargetRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Config/Server$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="SquaredUp.EAM.Library.Class.NTServiceMonitor.Configuration"]/ServiceName$</Name>
<Value>$Config/ServiceName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="SquaredUp.EAM.Library.Class.NTServiceMonitor.Configuration"]/CheckStartupType$</Name>
<Value>$Config/CheckStartupType$</Value>
</Setting>
</Settings>
</TargetRoleSettings>
</ConditionDetection>
</MemberModules>
<Composition>
<Node ID="Mapper">
<Node ID="Scheduler"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.Discovery.Data</OutputType>
</DataSourceModuleType>