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.

Configuring Database Monitors<br />

Use the options on this tab to specify how the Database monitor<br />

will query the database.<br />

Note: <strong>OneSight</strong> does not support multiple queries.<br />

Query – Enter a valid database statement. For example, you can<br />

enter the following Oracle SELECT statement:<br />

select value from v$sysstat where statistic# = 1<br />

If your database server supports returning a result set from a<br />

stored procedure you can call the procedure. For example, the<br />

following SQL Server stored procedure, present in the <strong>OneSight</strong><br />

database, returns a result set (not an output parameter) showing<br />

the configured <strong>OneSight</strong> sample rate (samples/minute):<br />

EmpirixAdmin.p_computeSampleRate<br />

Report On – Determines the data that is returned. Select query<br />

time to report on how long it takes the database to retrieve the<br />

query results. Select Query result to return the actual data<br />

retrieved by the query.<br />

Query time – Select query time to see how long it took to<br />

execute the query.<br />

Good Content string – Enter the string that you want to match<br />

in the query. If the query result does not contain this string,<br />

an error is returned instead of the query time.<br />

Query result – Select query result to return the actual numeric<br />

result of the query. If the result does not contain a number,<br />

use the Advanced button to map strings to numbers that will<br />

be returned to <strong>OneSight</strong>. If no Perl expression or string<br />

mapping is entered, <strong>OneSight</strong> returns the result.<br />

Perl Expression – Enter the Perl expression for the value that<br />

you want to match in the query result. If the query result does<br />

not contain this value, an error is returned.<br />

174 <strong>OneSight</strong> <strong>Administrator</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!