Re: [rrd-users] Not corect numbers in rrd ?

This is a discussion on Re: [rrd-users] Not corect numbers in rrd ? within the RRD Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0775111798== Content-Type: multipart/alternative; boundary="----=_NextPart_000_009C_01C7B1A8.A9AD2FB0" This ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-18-2007
Leif Neland
 
Posts: n/a
Default Re: [rrd-users] Not corect numbers in rrd ?

This is a multi-part message in MIME format.

--===============0775111798==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_009C_01C7B1A8.A9AD2FB0"

This is a multi-part message in MIME format.

------=_NextPart_000_009C_01C7B1A8.A9AD2FB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


----- Original Message -----=20
From: VladoPortos=20
To: rrd-users@lists.oetiker.ch=20
Sent: Monday, June 18, 2007 6:21 AM
Subject: [rrd-users] Not corect numbers in rrd ?


Hi all,

i made a graph which show online users and getting data from mysql and =
so
on...

but when i look on what data are feeded to rrd they look like this:

58 38

and in rrd it looks like this:

1182109560: 5.8000000000e+01 3.7985531650e+01

But in graph last values are 58 (OK) and second one is 37 ( not OK )

Any idea what im doing wrong ?


If you want (a better chance of) the exact numbers out that you put in, =
you must be sure you enter the data at the exact time which matches the =
steps.

So do not enter the data at "now", but calculate the time exactly at eg =
12:00:00
If you run a cron job at 12:00, it might be finished and enter the data =
at 12:00:01, and RRD interpolates by "drawing a straight line" between =
the last time-corrected data and 12:00:01.

Eg, if the value at 11:58:00 was 37 and 12:00:01 was 38, at 12:00:00 it =
would be 37.985531650=20
(the calculation is just an example, not the right values (probably))

What works for me in my is storing the timestamp at the start of the =
script and using it later when I enter the data, my scripts takes quite =
a few seconds, because they fetch and parse data from webpages. My cron =
manages to start the job in the right seconds mostly, it doesn't matter =
for me if it slips a second or two.


Leif
------=_NextPart_000_009C_01C7B1A8.A9AD2FB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1595" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dvladoportos@bancodata.eu=20
href=3D"mailto:vladoportos@bancodata.eu">VladoPort os</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Drrd-users@lists.oetiker.ch=20
=
href=3D"mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</A>=
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, June 18, 2007 =
6:21 AM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [rrd-users] Not corect =
numbers=20
in rrd ?</DIV>
<DIV><BR></DIV>
<DIV>Hi all,<BR><BR>i made a graph which show online users and getting =
data=20
from mysql and so<BR>on...<BR><BR>but when i look on what data are =
feeded to=20
rrd they look like this:<BR><BR>58 38<BR><BR>and in rrd it looks like=20
this:<BR><BR>1182109560: 5.8000000000e+01 3.7985531650e+01<BR><BR>But =
in graph=20
last values are 58 (OK) and second one is 37 ( not OK )<BR><BR>Any =
idea what=20
im doing wrong ?</DIV>
<DIV><BR>&nbsp;</DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2>If you want (a better chance of) the =
exact numbers=20
out that you put in, you must be sure you enter the data at the exact =
time which=20
matches the steps.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>So do not enter the data at "now", but =
calculate=20
the time exactly at eg 12:00:00</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If you run a cron job at 12:00, it =
might be=20
finished and enter the data at 12:00:01, and RRD interpolates by =
"drawing a=20
straight line" between the last time-corrected data and =
12:00:01.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Eg, if the value at 11:58:00 was 37 and =
12:00:01=20
was 38, at 12:00:00 it would be <FONT face=3D"Times New Roman" =
size=3D3>37.985531650=20
</FONT></FONT></DIV>
<DIV>(the calculation is just an example, not the right values =
(probably))</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>What works for me in my is storing the =
timestamp at=20
the start of the script and using it later when I enter the data, my =
scripts=20
takes quite a few seconds, because they fetch and parse data from =
webpages. My=20
cron manages to start the job in the right seconds mostly, it doesn't =
matter for=20
me if it slips a second or two.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>Leif</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_009C_01C7B1A8.A9AD2FB0--


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

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

--===============0775111798==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0