<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hello everyone.</div><div><br></div><div>I am developing a process for a report of CPU performance, which makes queries to a time-lapse rrd 30 minutes, starting from 00:00:00 to 23:59:59 of any particular day file.</div><div><br></div><div>The commands that would be used to determine AVERAGE and MAXIMUM are:</div><div><br></div><div>rrdtool graph x DEF: v = Cpu.rrd: 1: AVERAGE: start = 1462856400: end = start + 1799s VDEF: vm = v, AVERAGE PRINT: vm:% lf</div><div>rrdtool graph x DEF: v = Cpu.rrd: 1: AVERAGE: start = 1462856400: end = start + 1799s VDEF: vm = v, MAXIMUM PRINT: vm:% lf</div><div><br></div><div>1462856400 = May 10, 2016, 00:00:00</div><div>start + 1799 = May 10, 2016, 00:29:59</div><div><br></div><div>The following query would be done as follows</div><div><br></div><div>1462858200 = May 10, 2016, 00:30:00</div><div>start + 1799 = May 10, 2016, 00:59:59</div><div><br></div><div>rrdtool graph x DEF: v = Cpu.rrd: 1: AVERAGE: start = 1462858200: end = start + 1799s VDEF: vm = v, AVERAGE PRINT: vm:% lf</div><div>rrdtool graph x DEF: v = Cpu.rrd: 1: AVERAGE: start = 1462858200: end = start + 1799s VDEF: vm = v, MAXIMUM PRINT: vm:% lf</div><div><br></div><div>and so on...</div><div><br></div><div><br></div><div>Are consultations with rrd and how to use the time intervals (start and end) are correct, any suggestions?</div><br>
<u><b><font style="font-size:12pt;" face="Arial" size="3">Jesús Arriola Villarreal</font></b></u><br><br> </div></body>
</html>