Hi,
Please see the attached code for an example of differences in
return value for pmLookupName when a metric is not found depending on
whether the top level namespace is handled by a dynamic pmda. For a
regular metric (non dynamic) if we give it a bogus metric name, the
function returns fine, the appropriate pmID is set to NULL and "sts"
reflects the valid number of names converted, as expected.
For a metric that would be rooted at a dynamic tree, it seems the
lookups all happen properly, NULL is set for the bogus metric properly,
but "sts" returns PM_ERR_NAME.
I think it is somewhere in the pmns<->pdu interaction that the
status is being propagated all the way back for dynamic metrics but not
normal ones. I'm not familiar enough with this code to figure out the
right way to fix it.
Thanks for any insight.
Martins
lookuptest.c
Description: Text document
|