19.07.2014 Views

OneSight Administrator Guide

OneSight Administrator Guide

OneSight Administrator Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Global Metric Manager<br />

1 – the Virtual Agent uses the second value it matches to<br />

compare against the configured component. If a match is found,<br />

the first match is returned as the metric to <strong>OneSight</strong>.<br />

Refer to the examples at the end of this section for information on<br />

how the perl expression and the key index should be configured to<br />

correctly extract a value.<br />

Command Procedure – Select the state machine containing the XML<br />

for running a complex command. This is useful, for example, when<br />

you want to run a different command depending on the output of a<br />

previous command. Refer to “Configuring State Machines,” in<br />

Chapter 5 for more information.<br />

Configuration Example 1<br />

The user has a Linux system with the following components (―/‖<br />

and ―.sys‖) defined for the file system. The command that is to run<br />

is df –a and the output is as follows:<br />

File<br />

System<br />

1Kblocks<br />

Used Available Use% Mounted On<br />

tmpfs 498792 213176 285616 43% /<br />

proc 0 0 0 - /proc<br />

sysfs 0 0 0 - /sys<br />

devpts 0 0 0 - /dev/pts<br />

usbfs 0 0 0 - /proc/bus/usb<br />

The following are defined in the Metric Editor:<br />

Command: /bin/df –a<br />

Perl Expression: /\S+\s+([0-9]+)\s+[0-9]+.*\S+\s+(\S+)/<br />

Key Index: 1<br />

Chapter 6: Using Profiles 559

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

Saved successfully!

Ooh no, something went wrong!