[mrtg] Re: Any Ideas on Closening Values
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Fri May 18 23:30:56 MEST 2001
Josh Goldfarb wrote:
>
>
> Well I am using mrtg to monitor my UPS 3 Phase Load. But at the
> present moment I am attempting to graph the phase Load vs. the
> Percentage.. Now the problem here is that the Values are extremely far
> apart. The Load runs around 5400 and percentage only goes up to 100% (at
> least last time I checked) Now I
> MaxBytes1[x]7500
> MaxBytes2[x]100
I don't know what "the percentage" is so maybe this doesn't make sense:
The only thing I can think of is to display the load as an percentage
and plot this against that other percentage. This way, the values are
much closer.
You could try and divide the load by 75. This way, you get an percentage
out of it. Then change all labels etcetera to display the correct meaning
of those percentages.
5400 would be displayed as 72% (since 5400/75 rounded == 72) and the full
scale will show 100%
It may be impossible (or difficult) to do this from plain vanilla
MRTG. You're probably defined your target as
"Target[x]: OID1&OID2:string at ups" and there's no way that I know of
to do calculations on just one of the OIDs.
Options (testing is left upon you):
- Find an OID known to return zero and do:
"Target[x]: zero&OID2:string at ups + OID1&zero:string at ups / 75"
- Copy MRTG to a new name, hack this copy and make sure you only use it
for this particular target. You'd have to do the calculation only
for one out of two OIDs
- Use RRDtool as the back end, write your own graphing script that uses
a CDEF to get the desired result
HTH
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list