On Wed, 4 Jul 2001, gilly wrote:
> I've succeeded implementing different PMDA's under one root. However, there
> is a problem with pmdaInstall in 'pmdaproc.sh' script (called from the
> 'Install' script under each PMDA). In order to check that the agent is
> running OK this function calls pminfo over all metrics in the pmns by
> "pmns_name" where "pmns_name=$iam" (the line is:
> " for __n in $pmns_name ... pminfo -n $NAMESPACE -f $__n"
> However, in my case, I should call 'pminfo -f' with the root name as a
> prefix before $iam.
> Regarding the previous example:
> if the root is 'linux' and two PMDA's - 'nfs' & 'memory'. The script sends
> to 'pminfo -f' the metrics 'nfs' & 'memory', instead of the metrics
> 'linux.nfs' & 'linux.memory'.
> I just want to be sure 'm not missing anything here and what is the
> importance of this check under '_install'.
> thanks, gilly
In your Install (and Remove) scripts, after setting iam,
over-ride the default $pmns_name
e.g.
iam=linux-nfs # this is the PMDA name
pmns_name=linux.nfs # this is the PMNS prefix for names this PMDA provides
|