<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi<div class=""><br class=""></div><div class="">I see this in the rrdtool_rpn man page under the VDEF section:</div><div class=""><dt style="padding-top: 1em; font-weight: bold;" class=""><a id="IMAXIMUM__MINIMUM__AVERAGE" style="color: rgb(74, 113, 228);" class=""><font face="Courier New" class="">MAXIMUM, MINIMUM, AVERAGE</font></a></dt><dd style="margin-left: 1.5em;" class=""><div style="margin-bottom: 0.2em; margin-top: 0.2em;" class=""><font face="Courier New" class="">Return the corresponding value, MAXIMUM and MINIMUM also return the first occurrence of that value in the time component.</font></div><div style="margin-bottom: 0.2em; margin-top: 0.2em;" class=""><font face="Courier New" class="">Example: <code class="">VDEF:avg=mydata,AVERAGE</code></font></div></dd><div class=""><br class=""></div></div><div class="">What is the “time component” referred to here? Is there a way to reference it?</div><div class=""><br class=""></div><div class="">The reason I’m asking is because I’m trying to determine during which time of day traffic is the busiest - the so-called “busy hour”. My approach was to:</div><div class=""><br class=""></div><div class="">1. Force step=3600 to make it hourly averages</div><div class="">2. Get the hourly MAX values from the DEF</div><div class="">3. Determine the LTIME of the first occurence of MAX</div><div class=""><br class=""></div><div class="">So this is what I tried (paraphrasing a bit to simplify the rpn):</div><div class=""><br class=""></div><div class=""><font face="Courier New" class="">DEF:bytes_in_max=/some/path:bytes_in:MAX:step=3600:reduce=AVERAGE</font></div><div class=""><font face="Courier New" class="">DEF:bytes_out_max=/some/path:bytes_out:MAX:step=3600:reduce=AVERAGE</font></div><div class=""><font face="Courier New" class="">CDEF:max_util=bytes_in_max,bytes_out_max,MAX,8,*</font></div><div class=""><font face="Courier New" class="">VDEF:busy_time=max_util,MAXIMUM<b class=""><font color="#ff2600" class="">,LTIME</font></b></font></div><div class=""><br class=""></div><div class="">But seems that the VDEF is not valid with the LTIME added… I get “Unknown function MAXIMUM,LTIME” error. :-/</div><div class=""><br class=""></div><div class="">Any idea how I can find the time value for the hour at which MAXIMUM was for the VDEF? This is rrdtool-1.4.8, I haven’t tried with the latest rrdtool yet, but just want to know if I’m on the right track of if there is a better way...</div><div class=""><br class=""></div><div class="">Thanks in advance. :)</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">  Jacques</div><div class=""><br class=""></div></body></html>