01.01.2013 Views

Web Gateway 7.1.5 Product Guide - McAfee

Web Gateway 7.1.5 Product Guide - McAfee

Web Gateway 7.1.5 Product Guide - McAfee

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Monitoring<br />

Performance measurement 8<br />

Using events in rules to measure processing time for rule sets<br />

To measure the time the rule engine consumes for processing a rule set you can use the events that<br />

control the internal watch on the appliance in appropriate rules.<br />

A rule that uses, for example, the Stopwatch.Start event to start measuring processing time for the<br />

URL Filtering rule set could look as follows:<br />

Note: The example shows approximately how the rule appears on the user interface.<br />

Name<br />

Start stopwatch for rule set<br />

Criteria Action Event<br />

Always –> Continue – Stopwatch.Start (“URLFiltering”)<br />

In a similar way, you can use the events for stopping and resetting the internal watch in other rules.<br />

To measure the time consumed for processing the rule set, you can place a rule containing the starting<br />

event at the beginning of the rule set and one with the stopping event at the end.<br />

However, if you have rules in a rule set that can execute a Stop Rule Set, Stop Cycle, or Block action,<br />

you need to place the starting rule at the beginning of the rule set and a stopping event into each rule<br />

that executes one of the mentioned actions.<br />

A rule with an event to stop the internal watch inserted would look as follows:<br />

Note: The example shows approximately how the rule appears on the user interface.<br />

Name<br />

Allow URLs in URL Whitelist<br />

Criteria Action Event<br />

URL matches in URL Whitelist –> Stop Rule Set – Stopwatch.Stop (“URLFiltering”)<br />

When this rule is applied, it stops processing the URL Filtering rule set because the URL that a user<br />

requested access for has been found to be on the list of allowed URLs. The stopwatch event must<br />

therefore be inserted into this rule.<br />

If it were inserted into a separate rule at the end of the rule set, this rule would never be processed<br />

because the whitelisting rule had stopped processing of the rule set before all its rules were processed.<br />

In this case, the event that stops the internal watch would never be executed.<br />

<strong>McAfee</strong> <strong>Web</strong> <strong>Gateway</strong> <strong>7.1.5</strong> <strong>Product</strong> <strong>Guide</strong> 299

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!