RRD Graph Percentile Change

  • Is it possible to change the 95th Percentile option for the RRD Graphic? to show 90th Percentile instead?

  • Rebel Alliance Developer Netgate

    Not easily.

    you could go into /usr/local/www/status_rrd_graph_img.php and make some edits to change 95 to 90 on lots of lines, and hope it works. (Though some may also need to change 5 to 10)

    Unless you know your way around rrdtool syntax, it's probably not something that should be attempted lightly.

  • Fair play! Thanks alot. Could it be worth putting it in the suggestion for future releases?

  • Jimp this is the bit I have changed. And the Graph is working and now says 90th Percentile, but im not 100% sure if its calculating it correctly. Can you confirm?

    $graphcmd .= "VDEF:"$curif-in_bits_95=$curif-in_bits,90,PERCENT" ";
    $graphcmd .= "CDEF:"$curif-out_bits_mul=$curif-out_bits,$multiplier,*" ";
    $perc = $multiplier > 0 ? "90" : "10";
    $graphcmd .= "VDEF:"$curif-out_bits_95=$curif-out_bits_mul,{$perc},PERCENT" ";

    $graphcmd .= "AREA:"$curif-in_bits_block#{$colortrafficdown[1]}:$curif-in-block" ";
    $graphcmd .= "AREA:"$curif-in_bits_pass#{$colortrafficdown[0]}:$curif-in-pass:STACK" ";
    $graphcmd .= "{$AREA}:"$curif-out_bits_block_neg#{$colortrafficup[1]}:$curif-out-block" ";
    $graphcmd .= "{$AREA}:"$curif-out_bits_pass_neg#{$colortrafficup[0]}:$curif-out-pass:STACK" ";
    $graphcmd .= "HRULE:"$curif-in_bits_95#{$colortraffic95[1]}:$curif-in (90%)" ";
    $graphcmd .= "HRULE:"$curif-out_bits_95#{$colortraffic95[0]}:$curif-out (90%)" ";

    $graphcmd .= "COMMENT:"\n" ";
    $graphcmd .= "COMMENT:"\t\t  maximum      average      current        period        90th percentile\n" ";

  • Well what i did was rename the original file on the system to status_rrd_graph_img 95th and then downloaded the file. Made the changes above and uploaded it back calling it what its supposed to be status_rrd_graph_img and then looked at the graphs. I then saved the image of 1 week for the 90th, and then renamed the 95th file back to status_rrd_graph_img and then reloaded the image, and the value changed.

    So these are the images attached, just waiting for a developer to confirm what i done is good and it works.

    ![90th Week.png](/public/imported_attachments/1/90th Week.png)
    ![90th Week.png_thumb](/public/imported_attachments/1/90th Week.png_thumb)
    ![95th Week.png](/public/imported_attachments/1/95th Week.png)
    ![95th Week.png_thumb](/public/imported_attachments/1/95th Week.png_thumb)

  • Any movement on this?? Jimp???

Log in to reply