[prev in list] [next in list] [prev in thread] [next in thread]
List: rrd-users
Subject: Re: [rrd-users] [FORGED] graph question
From: Steve Shipway <s.shipway () auckland ! ac ! nz>
Date: 2015-11-22 20:37:59
Message-ID: 5820DC553954E44FA1A36C78323AD148A3FAD2C4 () uxcn10-6 ! UoA ! auckland ! ac ! nz
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Use rrdtool info /opt/templog/data/templog.rrd and check to make sure that the \
‘internal' and ‘external' DS really do have -55 as the lowerlimit and not 0. The \
behaviour you describe looks like the lower limit is set to 0 (as the data seem to be \
absent from the RRD).
You may also wish to verify that you really are storing the data correctly. It is \
possible that the script you are using to update the RRD with the temperature data is \
not correctly handling negative numbers, and is not storing the data successfully.
Steve
Steve Shipway
T: +64 9 3737 599 ext 86487
E: s.shipway@auckland.ac.nz <mailto:s.shipway@auckland.ac.nz>
(GNU Terry Pratchett)
From: rrd-users [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] \
On Behalf Of s pascal
Sent: Saturday, 21 November 2015 4:27 p.m.
To: rrd-users@lists.oetiker.ch
Subject: [FORGED] [rrd-users] graph question
Hi ,
i have this code to create the graph file
#!/bin/sh
rrdtool graph /var/www/temp_graph.png \
-w 1024 -h 400 -a PNG --slope-mode \
--start -1d --end now \
--vertical-label "temperature (C)" \
DEF:out=/opt/templog/data/templog.rrd:internal:AVERAGE \
DEF:in=/opt/templog/data/templog.rrd:external:AVERAGE \
LINE2:in#00ff00:"inside" \
LINE2:out#000ff:"outside"
And this file to create the rrd file:
#!/bin/sh
rrdtool create /opt/templog/data/templog.rrd --step 300 \
DS:internal:GAUGE:600:-55:125 \
DS:external:GAUGE:600:-55:125 \
RRA:AVERAGE:0.5:1:576 \
RRA:AVERAGE:0.5:3:1344 \
RRA:AVERAGE:0.5:12:1488 \
RRA:AVERAGE:0.5:72:1984 \
RRA:MIN:0.5:72:1984 \
RRA:MAX:0.5:72:1984
But when i create the graph, the temperature curve shows only positive temperature \
and not negative temperature.
When the temperature is going under 0 C, the curve is blank then become visible when \
temperature is positive.
How can i resolve this problem?
Thank you
Best Regards
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link="#0563C1" \
vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Use \
<b>rrdtool info /opt/templog/data/templog.rrd</b> and check to make sure that the \
‘internal' and ‘external' DS really do have -55 as the lowerlimit and not 0. \
The behaviour you describe looks like the lower limit is set to 0 (as the data seem \
to be absent from the RRD).<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>You may also \
wish to verify that you really are storing the data correctly. It is possible that \
the script you are using to update the RRD with the temperature data is not correctly \
handling negative numbers, and is not storing the data \
successfully.<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Steve<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p \
class=MsoNormal><b><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Steve \
Shipway<o:p></o:p></span></b></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>T: +64 9 3737 \
599 ext 86487<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>E: <a \
href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:1.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>(GNU Terry \
Pratchett)<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div \
style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div \
style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p \
class=MsoNormal><b><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span \
lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> rrd-users \
[mailto:rrd-users-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] <b>On Behalf Of \
</b>s pascal<br><b>Sent:</b> Saturday, 21 November 2015 4:27 p.m.<br><b>To:</b> \
rrd-users@lists.oetiker.ch<br><b>Subject:</b> [FORGED] [rrd-users] graph \
question<o:p></o:p></span></p></div></div><p \
class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal \
style='margin-bottom:12.0pt'><span style='font-family:"Verdana",sans-serif'>Hi \
,<o:p></o:p></span></p></div><div><p class=MsoNormal \
style='margin-bottom:12.0pt'><span style='font-family:"Verdana",sans-serif'>i have \
this code to create the graph file<br><br><span \
style='color:blue'>#!/bin/sh<br>rrdtool graph /var/www/temp_graph.png \<br>-w 1024 -h \
400 -a PNG --slope-mode \<br>--start -1d --end now \<br>--vertical-label \
"temperature (C)" \
\<br>DEF:out=/opt/templog/data/templog.rrd:internal:AVERAGE \
\<br>DEF:in=/opt/templog/data/templog.rrd:external:AVERAGE \
\<br>LINE2:in#00ff00:"inside" \
\<br>LINE2:out#000ff:"outside"</span><br><br><o:p></o:p></span></p></div><div><p \
class=MsoNormal><span style='font-family:"Verdana",sans-serif'>And this file to \
create the rrd file:<br><br><span style='color:blue'>#!/bin/sh<br>rrdtool create \
/opt/templog/data/templog.rrd --step 300 \
\<br>DS:internal:GAUGE:600:-55:125 \<br>DS:external:GAUGE:600:-55:125 \
\<br>RRA:AVERAGE:0.5:1:576 \<br>RRA:AVERAGE:0.5:3:1344 \
\<br>RRA:AVERAGE:0.5:12:1488 \<br>RRA:AVERAGE:0.5:72:1984 \
\<br>RRA:MIN:0.5:72:1984 \
\<br>RRA:MAX:0.5:72:1984</span><o:p></o:p></span></p></div><div><p \
class=MsoNormal><span \
style='font-family:"Verdana",sans-serif'><o:p> </o:p></span></p></div><div><p \
class=MsoNormal style='margin-bottom:12.0pt'><span \
style='font-family:"Verdana",sans-serif'>But when i create the graph, the temperature \
curve shows only positive temperature and not negative \
temperature.<o:p></o:p></span></p></div><div><p class=MsoNormal \
style='margin-bottom:12.0pt'><span style='font-family:"Verdana",sans-serif'>When the \
temperature is going under 0 C, the curve is blank then become visible when \
temperature is positive.<o:p></o:p></span></p></div><div><p class=MsoNormal \
style='margin-bottom:12.0pt'><span style='font-family:"Verdana",sans-serif'>How can i \
resolve this problem?<o:p></o:p></span></p></div><div><p class=MsoNormal><span \
style='font-family:"Verdana",sans-serif'>Thank you<o:p></o:p></span></p></div><p \
class=MsoNormal><span style='font-family:"Verdana",sans-serif'>Best \
Regards<o:p></o:p></span></p></div></div></div></div></body></html>
["smime.p7s" (application/pkcs7-signature)]
_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
--===============5013432269985411372==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic