HP-UX Workload Manager User's Guide

Advanced WLM usage: Using performance metrics
Supplying data to WLM
Appendix H504
Closing communications with wlm_mon_detach() The data
collector uses the wlm_mon_detach() function to close (detach from) a
communication channel with the WLM daemon.
To use this function, you must reference the following include file:
/opt/wlm/include/wlm.h
NOTE This function is not thread-safe: Multiple threads cannot call the
function at the same time.
The syntax is:
int wlm_mon_detach(int handle_id);
where
handle_id Is the communication channel identifier returned by
the wlm_mon_attach() call.
The exit status values for wlm_mon_detach() are:
0 Success
-1 Failure
Sending ARM transaction data from a modified C program
ARM, or Application Response Measurement, was developed to provide
an open, vendor-neutral approach for measuring end-to-end application
response time. ARM consists of six library calls that are inserted in
application source code. These calls isolate transactions so that you can
collect data on and manage these transactions proactively.
If you have the C source code to an application and are inclined to modify
the source, you can instrument the application with ARM API calls to
measure the events or transactions that are most important to your
business.
NOTE The HP ARM implementation is available through GlancePlus. Install
GlancePlus on each system where you want to track ARM data.