[rtg] Flipping ifOutOctects and ifInOctects

Steve Finkelstein sf at stevefink.net
Mon Dec 17 14:03:55 EST 2007


Thanks a bunch Brandon.

Removing plot_legend() did the trick in 0.7.4. I'll have to look into
upgrading to use the flipping that you've mentioned.

Thanks a bunch again. :-)

On 12/17/07, Brandon Ewing <marlboro at warningg.com> wrote:
>
> On Mon, Dec 17, 2007 at 01:13:32PM -0500, Steve Finkelstein wrote:
> >    Hi all,
> <snip>
> >    I realize that these tables are auto generated from SNMP polling and
> I'd
> >    have to hack MIBs in order to get the results I'm ultimately looking
> to
> >    achieve. I was curious, before going that route, if anyone has
> modified
> >    the source to RTG in order to either:
> >
> >    a) completely disregard the data from appearing on rtg images.
> >    b) flip the result set.
> >
> >    I wouldn't mind recompiling RTG to achieve these results. It
> obviously is
> >    not feasible to do otherwise.
>
> RTG 0.81 allows one to set Line Object labels in the definition.  Via CGI,
> the LO syntax is:
>
> LO=[LOINDEX]:[DOINDEX]:[OPTIONS]:[LABEL]
>
> So, a URL to (for example) invert IfIn/IfOut on RID 1, ID 1:
>
> IMG
>
> SRC='/cgi-bin/rtgplot.cgi?PO=Example+Graph:500:150::timestamp:timestamp&DO=1:ifInOctets_1:1&DO=2:ifOutOctets_1:1&LO=1:1:factor=8:IfOutOctets_1&LO=2:2:factor=8IfInOctets_1'
>
> I am sure that you are correct, however, if you are using the 0.74plotter.
> Possible a modification of plot_legend() in rtgplot.c could accomplish
> what
> you want in 0.74. (IE, comment out the call to plot_legend() and recompile
> to prevent the legend from being drawn).
>
>
> --
> Brandon Ewing                                        (
> nicotine at warningg.com)
>
> _______________________________________________
> RTG mailing list
> RTG at lists.grdata.com
> http://lists.grdata.com/mailman/listinfo/rtg
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.grdata.com/pipermail/rtg/attachments/20071217/8e85a652/attachment.html 


More information about the RTG mailing list