<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=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>I see in the rrdfetch man page there is a DST warning saying “If you specify time offset in days, weeks, months, or years, you will end with the time offset that may vary depending on your time reference,… 1 day may be not equal to 24 hours twice a year, when DST-related clock adjustments take place….” <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I used seconds for all the offsets when the DS was created.<o:p></o:p></p><p class=MsoNormal> dataToKeep=`expr $rraDaysToKeep \* 86400 / $step`<o:p></o:p></p><p class=MsoNormal> rraString="$rraString RRA:AVERAGE:0.5:1:$dataToKeep"<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> if [ $step -lt 1800 ]; then<o:p></o:p></p><p class=MsoNormal> valuesPerHalfHour=`expr 1800 / $step`<o:p></o:p></p><p class=MsoNormal> halfHourValuesToKeep=`expr $rraDaysToKeep \* 48`<o:p></o:p></p><p class=MsoNormal> rraString="$rraString RRA:AVERAGE:0.5:${valuesPerHalfHour}:${halfHourValuesToKeep} RRA:MAX:0.5:${valuesPerHalfHour}:${halfHourValuesToKeep}"<o:p></o:p></p><p class=MsoNormal> fi<o:p></o:p></p><p class=MsoNormal> if [ $step -lt 3600 ]; then<o:p></o:p></p><p class=MsoNormal> valuesPerHour=`expr 3600 / $step`<o:p></o:p></p><p class=MsoNormal> hourValuesToKeep=`expr $rraDaysToKeep \* 24`<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When I said that everything was in epoch, I was implying that none of my scripts use localtime or a named time offsets. All my data is inserted using an epoch time and my rrdfetch uses “–s <epoch>-300”.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So is it the case that if my system is running with a TZ offset that twice a year RRD is going to return an error? <o:p></o:p></p></div>
<p><span style="font-family:'Arial';font-size:8pt;">CONFIDENTIALITY NOTICE: The information contained in this message may be privileged and/or confidential. If you are not the intended recipient, or responsible for delivering this message to the intended recipient, any review, forwarding, dissemination, distribution or copying of this communication or any attachment(s) is strictly prohibited. If you have received this message in error, please notify the sender immediately, and delete it and all attachments from your computer and network.</span></p></body></html>