UNIX/Linux Service

Microsoft.Unix.Service.Template (Template)

This template has been superseded by the UNIX/Linux Process monitoring template. The UNIX/Linux Process monitoring template should be used instead of this template.

Source Code:

<Template ID="Microsoft.Unix.Service.Template">
<Configuration>
<xsd:element name="Namespace" type="xsd:string"/>
<xsd:element name="TypeName" type="xsd:string"/>
<xsd:element name="SelectedGUID" type="xsd:string"/>
<xsd:element name="ComputerName" type="xsd:string"/>
<xsd:element name="ComputerGUID" type="xsd:string"/>
<xsd:element name="ComputerGroupName" type="xsd:string"/>
<xsd:element name="ComputerGroupGUID" type="xsd:string"/>
<xsd:element name="ServiceName" type="xsd:string"/>
<xsd:element name="Handle" type="xsd:string"/>
<xsd:element name="ModulePath" type="xsd:string"/>
<xsd:element name="LocaleId" type="xsd:string"/>
<xsd:element name="TypeDisplayName" type="xsd:string"/>
<xsd:element name="TypeDescription" type="xsd:string"/>
</Configuration>
<References>
<Reference ID="System"/>
<Reference ID="SC"/>
<Reference ID="Windows"/>
<Reference ID="Self"/>
<Reference ID="Health"/>
<Reference ID="Unix"/>
</References>
<Implementation>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="$TemplateConfig/TypeName$" Abstract="false" Accessibility="Public" Hosted="true" Base="$Reference/Self$Microsoft.SystemCenter.OwnProcessUnixService"/>
</ClassTypes>
<RelationshipTypes/>
</EntityTypes>
<ModuleTypes/>
<MonitorTypes/>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="$TemplateConfig/TypeName$.DiscoveryRule" Enabled="false" Target="$Reference/Unix$Microsoft.Unix.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="$TemplateConfig/TypeName$"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="$Reference/Unix$Microsoft.Unix.ScheduledClassSnapshotDataMapper">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Seconds">14400</Interval>
<SyncTime/>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
<ClassId>$MPElement[Name="$TemplateConfig/TypeName$"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="$Reference/Unix$Microsoft.Unix.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="$Reference/Unix$Microsoft.Unix.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.UnixService"]/ServiceName$</Name>
<Value>$TemplateConfig/ServiceName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.UnixService"]/ModulePath$</Name>
<Value>$TemplateConfig/ModulePath$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.UnixService"]/Handle$</Name>
<Value>$TemplateConfig/Handle$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.UnixService"]/ComputerName$</Name>
<Value>$TemplateConfig/ComputerName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.UnixService"]/ComputerGUID$</Name>
<Value>$TemplateConfig/ComputerGUID$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.UnixService"]/ComputerGroupName$</Name>
<Value>$TemplateConfig/ComputerGroupName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="$Reference/Self$Microsoft.SystemCenter.UnixService"]/ComputerGroupGUID$</Name>
<Value>$TemplateConfig/ComputerGroupGUID$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>
</Discoveries>
<Overrides>
<DiscoveryPropertyOverride ID="$TemplateConfig/TypeName$.DiscoveryOverride" Context="Unix!Microsoft.Unix.Computer" ContextInstance="$TemplateConfig/SelectedGUID$" Enforced="false" Discovery="$TemplateConfig/TypeName$.DiscoveryRule" Property="Enabled">
<Value>true</Value>
</DiscoveryPropertyOverride>
</Overrides>
</Monitoring>
<PresentationTypes/>
<Presentation>
<ImageReferences/>
</Presentation>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleId$" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="$TemplateConfig/TypeName$">
<Name>$TemplateConfig/TypeDisplayName$</Name>
<Description>$TemplateConfig/TypeDescription$</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>