Performance Monitor allows you to monitor multiple servers at the same time. For example, you can monitor a Hardware Node and its Virtuozzo Containers simultaneously. One important requirement here is that the performance classes and the counters that you will select for each server type must be compatible with all of them. This means that if you select a class from the "generic" category, it must also exist in the "virtuozzo" category. If you mix classes and counters that exist in one category but don't exist in the other, you will get unpredictable results. One way around this is to include only the names of the classes and omit the names of the counters. This way, the names of the counters will be retrieved automatically by Performance Monitor, so the reports will contain the "correct" counters for each server type, i.e the report will show different counters for different server types.
There's one more parameter that the start_monitor
call takes: filter
. You can use this parameter when you want to monitor all available servers of a particular type but exclude all other servers. In order to do that, do not specify Server IDs but specify the server types to exclude from monitoring. For example, if you want to monitor only the Virtuozzo Containers but you want to exclude the Hardware Node, supply the empty eid
element and include the filter
element containing the value "generic". If you include the empty eid
element and don't specify a filter, then all available servers of all types will be monitored.