HP-UX Workload Manager User's Guide

Advanced WLM usage: Using performance metrics
Supplying data to WLM
Appendix H 499
Sending data via stdout
You can use wlmrcvdc to forward the stdout of a command to WLM. If
your data collector program prints its metrics to stdout, you can run the
program by invoking it with wlmrcvdc in the WLM configuration file.
wlmrcvdc automatically forwards stdout to WLM.
NOTE If the command exits with status zero, you can use wlmsend to continue
feeding data to the rendezvous point for wlmrcvdc. (wlmrcvdc creates the
rendezvous point when it is invoked by WLM.)
Consider the following example in which an instance of wlmrcvdc starts
a data collector named ordercounter. As ordercounter writes values to
its sdtout, wlmrcvdc reads those values and forwards them to the WLM
daemon on behalf of the metric order_cnt:
tune order_cnt books {
coll_argv = wlmrcvdc /opt/books/ordercounter;
...
}
WLM provides a number of commands to use with wlmrcvdc to forward
GlancePlus metrics to WLM. For information on those commands, see:
ARM transaction data” on page 488
“GlancePlus application data” on page 488
“GlancePlus global data” on page 489
“GlancePlus PRM-specific application data” on page 490
“GlancePlus PRM-controlled volume group data” on page 491
“Oracle database data” on page 492
For background information on how wlmrcvdc gets your data to WLM,
see “Sending data with wlmsend and wlmrcvdc: How it works” on
page 509.
Sending data from a collector written in C
To send metric information to WLM from a data collector written in C,
you can: