Writing a Basic Monitor Client Library program

A basic Monitor Client Library application:

  1. Defines error handling.

  2. Connects to a server using the following steps:

  3. Creates one or more views that define the performance data to be monitored.

  4. Optionally, targets specific performance data values with filters.

  5. Optionally, sets alarms on performance data values.

  6. Requests performance data values.

  7. Processes the results.

  8. Closes the connection to the server.

  9. Deallocates the connection or reuse it by reconnecting.

NoteYou must have the System Administrator role on Adaptive Server or execute permission on the stored procedure mon_rpc_connect to perform monitoring.