Please ignore my last mail, the problem I had described was irrelevant.
The thing is I don't intend to use pmie (as everyone suggested) 'cause I
don't want the 'total' agent to monitor periodically the other agent - I
want it to calculate the aggregated metric every time it is requested
(therefore it calls pmFetch sequentially - once for each host).
I'm not sure I understand completely the use of contexts and how I should
implement it in my case.
Any help in this subject will be appreciated,
thanks.
>All the answers mentioned pmie, but what I'm trying to implement (and I'm
>still not sure I can do it) is to have a PMDA that performs sequential
>pmFetch calls - each for a different host, and sums the results as
>'total-results'. Trying to run pminfo on this 'total' PMDA I get the
>following error:
>the metrics' values ARE calculated correctly, but when trying to get the
>instances' names (using pmGetInDom() in lookup()) - I get an "Unknown or
>illegal instance identifier" error. It seems that the second call
>(pmGetInDom, after pmFetch) to the PMDA on the other host doesn't reach its
>destination.
>Maybe I have a context problem? (I'm not sure I understand the contexts
>issue well.)
>Thanks, gilly
|