[rtg] Flipping ifOutOctects and ifInOctects
Brandon Ewing
marlboro at warningg.com
Mon Dec 17 13:42:48 EST 2007
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.74 plotter.
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.grdata.com/pipermail/rtg/attachments/20071217/7257555f/attachment.bin
More information about the RTG
mailing list