IIS 7.0 Web Site Discovery

Microsoft.Windows.InternetInformationServices.2008.DiscoverAllWebSitesRefCountRule (Rule)

This rule runs against every IIS 7.0 Web Server and discovers web sites that are installed.

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.2008.WebServer
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableFalse
CommentThis discovery discovers all web sites on system using File upload to transfer data items larger than 4MB

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.Server.IIS.IISWebSiteDiscoveryDataSource.2008.Duplicate Default
FileUploadWA WriteAction DiscoveryPublishData Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.2008.DiscoverAllWebSitesRefCountRule" Enabled="onEssentialMonitoring" Target="IIS7!Microsoft.Windows.InternetInformationServices.2008.WebServer" ConfirmDelivery="false" Remotable="false" Priority="Normal" Comment="This discovery discovers all web sites on system using File upload to transfer data items larger than 4MB">
<Category>Custom</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.IISWebSiteDiscoveryDataSource.2008.Duplicate">
<PeriodInSeconds>3600</PeriodInSeconds>
<DiscoverySourceType>0</DiscoverySourceType>
<DiscoverySourceObjectId>$MPElement$</DiscoverySourceObjectId>
<DiscoverySourceManagedEntityId>$Target/Id$</DiscoverySourceManagedEntityId>
<ComputerPrincipalName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerPrincipalName>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="FileUploadWA" TypeID="DiscoveryPublishData"/>
</WriteActions>
</Rule>