IIS 7.0 網站探索

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

此規則會針對每個 IIS 7.0 Web 伺服器執行,並探索其中安裝的網站。

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>