Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    RRD Graph Percentile Change

    Scheduled Pinned Locked Moved General pfSense Questions
    6 Posts 2 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      craigduff
      last edited by

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

      Kind Regards,
      Craig

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • C
          craigduff
          last edited by

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

          Kind Regards,
          Craig

          1 Reply Last reply Reply Quote 0
          • C
            craigduff
            last edited by

            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" ";

            Kind Regards,
            Craig

            1 Reply Last reply Reply Quote 0
            • C
              craigduff
              last edited by

              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)

              Kind Regards,
              Craig

              1 Reply Last reply Reply Quote 0
              • C
                craigduff
                last edited by

                Any movement on this?? Jimp???

                Kind Regards,
                Craig

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.