Previous page

Next page

Locate page in Contents

Print this page

Performance Monitoring and Statistics Collection

In VZAgent version 3.0.x, we had "Periodic Operators" which were used to collect performance data on a periodic basis. Each system resource type had a matching "operator" that provided functionality for the resource monitoring. There was the hw_cpu operator to monitor the CPU utilization; the hw_net operator allowed to monitor the network, and so forth. None of these exist anymore. The old-style performance monitoring has been removed from the API. The all-new perf_mon interface has been introduced in VZAgent 4.0.0, which now provides the performance monitoring functionality. The main difference between the old-style Periodic Operators and the new perf_mon interface is that perf_mon can handle all of the available types of the resources. It does that by utilizing the new concept of performance classes, counters, and instances that has been introduced in VZAgent 4.0.0. You simply pass to perf_mon the appropriate class/counter/instance values and it will monitor the corresponding system resource for you.

What it means to you is that if you have an application that monitors system resources, it will have to be re-developed. You will have to add additional code that will retrieve the available performance classes and counters (although, this information can probably be retrieved just once and then hard-coded, which is entirely up to you). You will also have to use the new interface and the calls that it provides. The monitoring results are returned using new structures as well, so if you have a parser of some sort that processes the results and generates a report from them, this will also have to be changed.

Please send us your feedback on this help page