19.07.2014 Views

OneSight Administrator Guide

OneSight Administrator Guide

OneSight Administrator Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Using Regular Expressions for Pattern Matching<br />

performance data from a log file entry. This data can then be used within<br />

<strong>OneSight</strong>, both for alerting, using threshold alerts, and reporting. When<br />

specifying a Perl Expression to gather performance data, parentheses are<br />

used within the expression to delimit the numeric data to return.<br />

Log File Entry Modifier Results<br />

There are 100 bytes free /([0-9]+) bytes free/ 100<br />

3/05/01 11:03 AM 5.21 seconds /M (.*) seconds/ 5.21<br />

Defining Expressions for Metric Performance Data<br />

using the <strong>OneSight</strong> Virtual Agent Monitor<br />

Perl expressions are used to parse the output of a command line program<br />

and return the desired metrics using the <strong>OneSight</strong> Virtual Agent<br />

Monitor. This data can then be used within <strong>OneSight</strong>, both for alerting,<br />

using threshold alerts, and reporting. When specifying a Perl Expression<br />

to gather performance data, parentheses are used within the expression to<br />

delimit the numeric data to return.<br />

Command Expression Results<br />

echo 5 ^\w+\W+([0-9]+) 5<br />

vmstat 1 2 / (?:\S+\s+){4,4}([0-9]+)/ Any value in the Free<br />

Memory column of the<br />

vmstat program output<br />

(e.g. 661552.0). Note that<br />

the <strong>OneSight</strong> Virtual<br />

Agent returns the value<br />

on the last line of the<br />

program output that<br />

matches the expression.<br />

Chapter 5: Configuring Monitors 417

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

Saved successfully!

Ooh no, something went wrong!