<font size=2 face="Adobe Serif MM">Hey Keith,</font>
<br>
<br><font size=2 face="Adobe Serif MM">No problem, when I started using
MRTG a little over a year or so ago, this mailing-list really helped me
work my way through it.</font>
<br><font size=2 face="Adobe Serif MM">So I'm glad to return the favor...</font>
<br>
<br><font size=2 face="Adobe Serif MM">Anyway, I think all you would need
to do is this:</font>
<br>
<br>
<br><font size=3 face="Adobe Serif MM"><b>- Options for each of the 4 "Modem
Counters" Graph:</b></font>
<br><font size=2 face="Adobe Serif MM"> *<i>For
each of the Modem "Counters" Graphs (*there are 4) you could
use something like this as your </i></font>
<br><font size=2 face="Adobe Serif MM"><i> "routers.cgi*Options[...]:"
Directive:</i></font>
<br>
<br><font size=4 face="Adobe Serif MM"><u> <b>DIRECTIVE(s)</u>:</b></font>
<br><font size=2 face="Adobe Serif MM"><i> </i><b> </b></font><font size=4 face="Adobe Serif MM"><b>1.</b></font><font size=2 face="Adobe Serif MM"><b>
Options[</b><i>$target_name</i><b>]: </b>growright, gauge, noo</font>
<br><font size=2 face="Adobe Serif MM"><b> </b></font><font size=4 face="Adobe Serif MM"><b>2.</b></font><font size=2 face="Adobe Serif MM"><b>
routers.cgi*Options[</b><i>$target_name</i><b>]: </b>fixunit, nototal,
nopercent</font>
<br>
<br><font size=2 face="Adobe Serif MM"><b><i>
</i></b><i>*If you need to use ANY of the options on the "routers.cgi*Options"
Line then you need to prefix "Options" with the</i></font>
<br><font size=2 face="Adobe Serif MM"><i>
"routers.cgi*"
prefix. On the cfg file I took these directives from, I use both of the
above lines for a config that graphs</i></font>
<br><font size=2 face="Adobe Serif MM"><i>
current/active
VPN Sessions. Which is somewhat similar to yours because it is just a count/number,
and not a unit (i.e. kb, b, etc...)</i></font>
<br>
<br><font size=2 face="Adobe Serif MM"><b>
- <u>"Regular" Options <i>(</u></i></b><i><u>*from
above<b>)</u>:</i></b></font>
<br><font size=2 face="Adobe Serif MM"><b>
</b>-
<b>noo - </b>Here the <b>"noo"</b> is important because we only
want one value to be graphed <i>(i.e. Tells MRTG to not do </i></font>
<br><font size=2 face="Adobe Serif MM"><i>
the default, which is to graph "In"
and "Out" Values like for a router's interface traffic)</i>.
So here the <b>"noo"</b></font>
<br><font size=2 face="Adobe Serif MM">
says "<u>no</u> <u>o</u>ut"
value.</font>
<br><font size=2 face="Adobe Serif MM">
- <b>gauge
- </b>The <b>"gauge"</b> option is basically a "current
status" value. Not sure if that's what you want for this, I'm </font>
<br><font size=2 face="Adobe Serif MM">
thinking it probably
is though..?</font>
<br><font size=2 face="Adobe Serif MM">
- <b>growright
- </b>And I think the "growright" option is not used anymore
<i>(deprecated)</i>, but I always include it by habit.</font>
<br>
<br><font size=2 face="Adobe Serif MM"><b>
- <u>"Enhanced" Options <i>(</u></i></b><i><u>*from
above, with 'routers.cgi*' <b>)</u>:</i></b></font>
<br><font size=2 face="Adobe Serif MM">
- <b>fixunit
- </b>This you will probably need as well. This tells MRTG that this value
should not be appended with the </font>
<br><font size=2 face="Adobe Serif MM">
normal "k"
or "b/s", etc... since It's only a number/count.</font>
<br><font size=2 face="Adobe Serif MM">
<b>- nototal
- </b>This will remove the "Total" line calculation from showing
on the graph.</font>
<br><font size=2 face="Adobe Serif MM">
<b>- nopercent
- </b>This will suppress the calculation of the percentage of the MaxBytes
value for the displayed values.</font>
<br><font size=2 face="Adobe Serif MM">
Without this, a line will be graphed showing a percentage/ratio
of the current value compared to </font>
<br><font size=2 face="Adobe Serif MM">
the "MaxBytes" value.</font>
<br>
<br><font size=4 face="Adobe Serif MM"><u> <b>DIRECTIVE(s)</u>:</b></font>
<br><font size=2 face="Adobe Serif MM"><b> </b></font><font size=4 face="Adobe Serif MM"><b>3.</b></font><font size=2 face="Adobe Serif MM"><b>
routers.cgi*Graph[</b><i>$target_name</i><b>]:</b> All-Counters</font>
<br><font size=2 face="Adobe Serif MM">
<i>*This
Directive must be included in ALL 4 of the "Modem Counters" Graph's
Directives. You may include the </i></font>
<br><font size=2 face="Adobe Serif MM"><i>
"Enhanced"
Options on this line as well, after the new Graph's name (i.e. After "All-Counters"
). But I THINK the </i></font>
<br><font size=2 face="Adobe Serif MM"><i>
graph
will inherit Options From the 4 parent graphs...</i></font>
<br>
<br><font size=2 face="Adobe Serif MM"><b>
- <u>"Graph" Directive <i>(</u></i></b><i><u>*from
"routers.cgi*Graph[...]:"<b> )</u>:</i></b></font>
<br><font size=2 face="Adobe Serif MM"><i>
<b>- </i>"All-Counters"
- </b>You can change the name to whatever you'd like to call it, but just
make sure it's the same for all of them.</font>
<br>
<br>
<br>
<br><font size=3 face="Adobe Serif MM"><b>- Options for the One UserDefined
Graph (</b><i>*Single Graph containg all 4 counters</i><b>):</b></font>
<br><font size=2 face="Adobe Serif MM"> <i>*These
options will define the "UserDefined" graph that will display
ALL 4 Targets on a single graph.</i></font>
<br>
<br><font size=2 face="Adobe Serif MM"><i>
</i><b>- Here is an example from my cfg for Active VPN Sessions on a VPN
Concentrator:</b></font>
<br><font size=2 face="Adobe Serif MM">
**This <i>will basically be the same for yours
because the values are just regular "numbers/a count" of something...</i></font>
<br>
<br><font size=4 face="Adobe Serif MM"><u> <b>DIRECTIVE(s)</u>:</b></font>
<br><font size=2 face="Adobe Serif MM"><b> </b></font><font size=4 face="Adobe Serif MM"><b>4.</b></font><font size=2 face="Adobe Serif MM"><b>
routers.cgi*ShortName[</b><i>$target_name</i><b>]:</b>
All-Counters</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*Description[</b><i>$target_name</i><b>]:</b>
All Active VPN-Sessions (Active, Remote-Access, LAN-to-LAN)</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*Title[</b><i>$target_name</i><b>]:</b>
All Modem Counters</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*YLegend[</b><i>$target_name</i><b>]:</b>
Count</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*MaxBytes[</b><i>$target_name</i><b>]:</b>
100000000 <i>#
---> Or whatever the max is if there is any...?</i></font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*UnScaled[</b><i>$target_name</i><b>]:</b>
dwmy</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*WithPeak[</b><i>$target_name</i><b>]:</b>
dwmy</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*Options[</b><i>$target_name</i><b>]:</b>
nototal</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*InSummary[</b><i>$target_name</i><b>]:</b>
yes</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*InCompact[</b><i>$target_name</i><b>]:</b>
yes</font>
<br><font size=2 face="Adobe Serif MM"><b>
routers.cgi*GraphStyle[</b><i>$target_name</i><b>]:</b>
range</font>
<br><font size=2 face="Adobe Serif MM"> </font>
<br><font size=2 face="Adobe Serif MM">
<i>*This "UserDefined" Graph will
also inherit the "Legend1" values from the other 4 graphs, so
you don't have to </i></font>
<br><font size=2 face="Adobe Serif MM"><i>
specify them here...</i></font>
<br><font size=2 face="Adobe Serif MM">
</font>
<br>
<br>
<br><font size=2 face="Adobe Serif MM">Anyway, let me know if that helps...
If something there doesn't make sense just let me know and I'll try to
clairfy it...</font>
<br>
<br><font size=2 face="Adobe Serif MM">Thanks,</font>
<br><font size=2 face="Adobe Serif MM">Matt</font>
<br>
<br>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Keith <kwoody@citytel.net></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">Steve Shipway <s.shipway@auckland.ac.nz></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">"mrtg@lists.oetiker.ch"
<mrtg@lists.oetiker.ch></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">01/02/2013 09:06 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [mrtg] Script
returns 4 values, Plot values via MRTG/routers2?</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif"><mrtg-bounces+mmartin=jwpepper.com@lists.oetiker.ch></font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Thu, 3 Jan 2013, Steve Shipway wrote:<br>
<br>
|->Matt has it right (and saves me having to make the answer myself!)<br>
|-><br>
|-><br>
|-><br>
|->A few enhancements I could suggest ¨C<br>
<br>
Thanks for the extra info Steve. Matt, your config definately did the<br>
trick.<br>
<br>
A few minor script probs to work out, but its there. I was on the right<br>
track, but now that I see how its done I understand it.<br>
<br>
Though one question, I dont want an average calculated. I just want each<br>
value plotted on the graph as it comes out.<br>
<br>
Which Option[] would I use?<br>
<br>
Thanks again guys.<br>
<br>
Regards,<br>
Keith<br>
<br>
_______________________________________________<br>
mrtg mailing list<br>
mrtg@lists.oetiker.ch<br>
</font></tt><a href="https://lists.oetiker.ch/cgi-bin/listinfo/mrtg"><tt><font size=2>https://lists.oetiker.ch/cgi-bin/listinfo/mrtg</font></tt></a><tt><font size=2><br>
</font></tt>
<br>