Hi folks,
I've got an interesting pmns problem I'm trying to resolve: I have a
pmda which, depending on the installation, serves different
metrics. The metric list is defined by the namespace which gets
installed with some metrics appearing in all installations and others
only in some.
I'd like to avoid copying the metric names and the help file entries
into multiple files, what I'd like to do is to have pmns which looks
like
root {
makc
}
makc {
common
private
}
#include "makc.common"
makc.private {
foo 1:2:3
}
Then I ship both makc.pmns and makc.common and makc.help with
makc.help.common which somehow gets combined during pmda install.
The best I've managed to come up so far is to effectively take over
the pmns and help processing from the PMDA shell library, combine pmns
using explicit cpp run in Install script, do my own help compilation
and lie to the Install script about the help source to stop it from
messing with my prepared help.dir/help.pag.
Does anyone has a more elegant solution?
max
|