home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
moodle.waes.ac.uk
/
moodle.waes.ac.uk.zip
/
moodle.waes.ac.uk
/
TMG
/
SP1-TMG-KB981324-AMD64-ENU.msp
/
PCW_CAB_SHFx2
/
F2143_msfpcui.dll
/
BINARY
/
25518
< prev
next >
Wrap
Text File
|
2010-06-15
|
2KB
|
47 lines
CREATE PROCEDURE [dbo].[ISA_spMalwareStatisticsRDL]
@FromDate datetime,
@ToDate datetime,
@ReportType varchar(10)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE @Counters TABLE
(
CounterName nvarchar(2000),
CounterValue bigint
)
DECLARE @FilesScannedByMalwareInspection bigint
DECLARE @FilesBlockedByMalwareInspection bigint
DECLARE @FilesCleanedByMalwareInspection bigint
DECLARE @FilesContainingMalware bigint
DECLARE @AverageDurationMalwareInspection bigint
EXEC dbo.ISA_spGetCounter N'tblSiteSummary', N'Requests', "[MalwareInspectionDuration] > 0 ", @FromDate, @ToDate, @ReportType,
@FilesScannedByMalwareInspection OUTPUT
EXEC dbo.ISA_spGetCounter N'tblMalwareSummary', N'Incidents', "[MalwareInspectionAction] = 3 ", @FromDate, @ToDate, @ReportType,
@FilesBlockedByMalwareInspection OUTPUT
EXEC dbo.ISA_spGetCounter N'tblMalwareSummary', N'Incidents', "[MalwareInspectionAction] = 2 ", @FromDate, @ToDate, @ReportType,
@FilesCleanedByMalwareInspection OUTPUT
EXEC dbo.ISA_spGetCounter N'tblMalwareSummary', N'Incidents', NULL, @FromDate, @ToDate, @ReportType,
@FilesContainingMalware OUTPUT
EXEC dbo.ISA_spGetCounter N'tblSiteSummary', N'MalwareInspectionDuration', "[MalwareInspectionDuration] > 0 ", @FromDate, @ToDate, @ReportType,
@AverageDurationMalwareInspection OUTPUT
IF (@FilesScannedByMalwareInspection > 0)
SET @AverageDurationMalwareInspection = @AverageDurationMalwareInspection / @FilesScannedByMalwareInspection
ELSE
SET @AverageDurationMalwareInspection = 0
INSERT INTO @Counters
VALUES(N'{[25153]}', @FilesScannedByMalwareInspection)
INSERT INTO @Counters
VALUES(N'{[25155]}', @FilesBlockedByMalwareInspection)
INSERT INTO @Counters
VALUES(N'{[25156]}', @FilesCleanedByMalwareInspection)
INSERT INTO @Counters
VALUES(N'{[25154]}', @FilesContainingMalware)
INSERT INTO @Counters
VALUES(N'{[25157]}', @AverageDurationMalwareInspection)
-- return the counters table
SELECT * FROM @Counters
END