Re: Difference in graph between Daily vs Weekly/Monthly/Yearly

Maikel van Gorkom <[email protected]> Mon, 13 May 2019 15:26:40 +0200
Newsgroups gmane.network.mrtg.user
Message-ID <CAJCbkz=6GisUKj6MrAy=2hpdw89=tSyNoK7Td_3cE9mH49aTQw@mail.gmail.com>
--===============1184599236043181575==
Content-Type: multipart/alternative; boundary="00000000000082d48f0588c4dee0"

--00000000000082d48f0588c4dee0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Daniel,

After an upgrade from version 2.7.4 to 2.7.7 everything works like it
should.

Regards.

On Mon, 13 May 2019, 09:52 Daniel Beardsmore, <[email protected]>
wrote:

> I=E2=80=99m confused =E2=80=A6 kMG according to the documentation, just c=
hanges the
> prefixes. It does not appear to apply any scaling. That is, if you write
> kMG[=E2=80=A6]: M,=E2=80=A6 then a value of 1 will be shown as 1 M, not 1=
. (It also seems
> to be a very clumsy to change the prefixes unless you specifically want
> non-SI prefixes.)
>
>
>
> The difference in your graphs is not a question of the wrong unit being
> shown. Rather, something is breaking the scaling. Having not used kMG and
> without your configuration to examine, I can=E2=80=99t say whether or not=
 it does
> what it is documented to do, or whether you have done something else that
> you=E2=80=99ve not noticed. Something seems very amiss if kMG is applying=
 scaling,
> as that is not what it seems to be there for.
>
>
>
> I would suggest trying Factor instead. If you set Factor to 1048576, you
> will have your megabytes converted to bytes, which should then scale
> properly.
>
>
>
> *From:* mrtg [mailto:[email protected].=
ch]
> *On Behalf Of *Maikel van Gorkom
> *Sent:* 11 May 2019 11:14
> *To:* [email protected]
> *Subject:* [mrtg] Difference in graph between Daily vs
> Weekly/Monthly/Yearly
>
>
>
> Hi All,
>
>
>
> Have had this issue for a while now. Have had this issue on different
> linux installations, different hardware and even on virtualized
> environment. I think it's a configuration issue, but i can't find the
> solution.
>
>
>
> The issue is as follows:
>
> I've configured MRTG to use a script to graph disk spaces. Using kmg the
> start position is MB's, because the input is MB's (df -m). The daily grap=
h
> correctly converts the the MB's to GB's so 1600000MB is converted to
> 1600GB('ish). When you look at the weekly, monthly and yearly graph, the
> convergion isn't mad, so you see 1600000MB printed into the graph.
>
>
>
> This is the day graph:
>
> https://tweakers.net/ext/f/v3pZaHDeqePXFIuvSM6PLUOw/full.png
>
> And this is the weekly graph:
>
> https://tweakers.net/ext/f/LHKgiUpxjYy8iVnave24aUVf/full.png
>
>
>
> Anybody got an idea what i'm doing wrong?
>
>
>
> Regards
>
> Maikel
>

--00000000000082d48f0588c4dee0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Daniel,<div><br></div><div>After an upgrade from versio=
n 2.7.4 to 2.7.7 everything works like it should.</div><div><br></div><div>=
Regards.</div></div><div dir=3D"auto"></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, 13 May 2019, 09:52 Daniel Bea=
rdsmore, &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">re=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204=
);padding-left:1ex"><div lang=3D"EN-GB"><div class=3D"gmail-m_4725102508530=
353093m_7138224615943343291WordSection1"><p class=3D"MsoNormal"><span style=
=3D"font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,127)">I=E2=80=
=99m confused =E2=80=A6 kMG according to the documentation, just changes th=
e prefixes. It does not appear to apply any scaling. That is, if you write =
kMG[=E2=80=A6]: M,=E2=80=A6 then a value of 1 will be shown as 1 M, not 1. =
(It also seems to be a very clumsy to change the prefixes unless you specif=
ically want non-SI prefixes.)<u></u><u></u></span></p><p class=3D"MsoNormal=
"><span style=3D"font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,=
127)"><u></u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span style=3D"=
font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,127)">The differe=
nce in your graphs is not a question of the wrong unit being shown. Rather,=
 something is breaking the scaling. Having not used kMG and without your co=
nfiguration to examine, I can=E2=80=99t say whether or not it does what it =
is documented to do, or whether you have done something else that you=E2=80=
=99ve not noticed. Something seems very amiss if kMG is applying scaling, a=
s that is not what it seems to be there for.<u></u><u></u></span></p><p cla=
ss=3D"MsoNormal"><span style=3D"font-size:10pt;font-family:Arial,sans-serif=
;color:rgb(0,0,127)"><u></u>=C2=A0<u></u></span></p><p class=3D"MsoNormal">=
<span style=3D"font-size:10pt;font-family:Arial,sans-serif;color:rgb(0,0,12=
7)">I would suggest trying Factor instead. If you set Factor to 1048576, yo=
u will have your megabytes converted to bytes, which should then scale prop=
erly.<u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-si=
ze:10pt;font-family:Arial,sans-serif;color:rgb(0,0,127)"><u></u>=C2=A0<u></=
u></span></p><div style=3D"border-top:none;border-right:none;border-bottom:=
none;border-left:1.5pt solid blue;padding:0cm 0cm 0cm 4pt"><div><div style=
=3D"border-right:none;border-bottom:none;border-left:none;border-top:1pt so=
lid rgb(225,225,225);padding:3pt 0cm 0cm"><p class=3D"MsoNormal"><b><span l=
ang=3D"EN-US" style=3D"font-size:11pt;font-family:Calibri,sans-serif">From:=
</span></b><span lang=3D"EN-US" style=3D"font-size:11pt;font-family:Calibri=
,sans-serif"> mrtg [mailto:<a href=3D"mailto:mrtg-bounces%2Bresident" rel=
=3D"noreferrer" target=3D"_blank">mrtg-bounces+resident</a>=3D<a href=3D"ma=
ilto:[email protected]" rel=3D"noreferrer" target=3D"_blank">t=
[email protected]</a>] <b>On Behalf Of </b>Maikel van Gorkom<br=
><b>Sent:</b> 11 May 2019 11:14<br><b>To:</b> <a href=3D"mailto:mrtg@lists.=
oetiker.ch" rel=3D"noreferrer" target=3D"_blank">[email protected]</a><=
br><b>Subject:</b> [mrtg] Difference in graph between Daily vs Weekly/Month=
ly/Yearly<u></u><u></u></span></p></div></div><p class=3D"MsoNormal"><u></u=
>=C2=A0<u></u></p><div><p class=3D"MsoNormal">Hi All,<u></u><u></u></p><div=
><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"MsoN=
ormal">Have had this issue for a while now. Have had this issue on differen=
t linux installations, different hardware and even on virtualized environme=
nt. I think it&#39;s a configuration issue, but i can&#39;t find the soluti=
on.<u></u><u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u>=
</p></div><div><p class=3D"MsoNormal">The issue is as follows:<u></u><u></u=
></p></div><div><p class=3D"MsoNormal">I&#39;ve configured MRTG to use a sc=
ript to graph disk spaces. Using kmg the start position is MB&#39;s, becaus=
e the input is MB&#39;s (df -m). The daily graph correctly converts the the=
 MB&#39;s to GB&#39;s so 1600000MB is converted to 1600GB(&#39;ish). When y=
ou look at the weekly, monthly and yearly graph, the convergion isn&#39;t m=
ad, so you see 1600000MB printed into the graph.<u></u><u></u></p></div><di=
v><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><p class=3D"Mso=
Normal">This is the day graph:<u></u><u></u></p></div><div><p class=3D"MsoN=
ormal"><a href=3D"https://tweakers.net/ext/f/v3pZaHDeqePXFIuvSM6PLUOw/full.=
png" rel=3D"noreferrer" target=3D"_blank">https://tweakers.net/ext/f/v3pZaH=
DeqePXFIuvSM6PLUOw/full.png</a>=C2=A0=C2=A0<u></u><u></u></p></div><div><p =
class=3D"MsoNormal">And this is the weekly graph:<u></u><u></u></p></div><d=
iv><p class=3D"MsoNormal"><a href=3D"https://tweakers.net/ext/f/LHKgiUpxjYy=
8iVnave24aUVf/full.png" rel=3D"noreferrer" target=3D"_blank">https://tweake=
rs.net/ext/f/LHKgiUpxjYy8iVnave24aUVf/full.png</a>=C2=A0=C2=A0<u></u><u></u=
></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><div><=
p class=3D"MsoNormal">Anybody got an idea what i&#39;m doing wrong?<u></u><=
u></u></p></div><div><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p></div><=
div><p class=3D"MsoNormal">Regards<u></u><u></u></p></div><div><p class=3D"=
MsoNormal">Maikel<u></u><u></u></p></div></div></div></div></div></blockquo=
te></div>

--00000000000082d48f0588c4dee0--


--===============1184599236043181575==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

--===============1184599236043181575==--