[mrtg-developers] Re: PATCH: Custom table support

Simon Leinen simon at switch.ch
Fri Jul 21 14:52:17 MEST 2006


Phil,

your patch looks like a very useful generalization of an important
feature in MRTG.

> The syntax is somewhat ugly, but works:
>  %{TableName}{Header=Value}{RetrieveField}

> Eg:
>  %{dfTable}{dfFileSys=/vol/vol0/}{dfPerCentInodeCapacity}&%{dfTable}{dfFileSys=/vol/web/}{dfPerCentKBytesCapacity}:ro-community at netapp1b-mgmt

> A bit longer than I'd like, but given what it's achieving, I don't
> see a way to make it shorter.

What I don't understand is why you even need the `TableName' - it
should be sufficient that the `Header' and `RetrieveField' have the
same index structure, right?

In some cases there may not even be a common table, e.g. you may want
to refer to ifDescr (from ifTable) and retrieve ifHCInOctets (from
ifXTable).

Regards,
-- 
Simon.

--
Unsubscribe mailto:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/mrtg-developers



More information about the mrtg-developers mailing list