Navigation

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

    Mbuf RRD graph, dashboard meter

    2.1 Snapshot Feedback and Problems - RETIRED
    9
    22
    5902
    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.
    • jimp
      jimp Rebel Alliance Developer Netgate last edited by

      Yesterday I added an RRD graph for mbufs on the System tab, and I fixed up a few things on the dashboard including turning mbufs into a percentage meter (preserving the text count) and it now updates via AJAX. (Unrelated to mbufs I also did the same thing to the state table output).

      If you're on a current snapshot, keep an eye on the graph and let me know if there are any tweaks to the format/output that might be beneficial.

      1 Reply Last reply Reply Quote 0
      • A
        athurdent last edited by

        Just gitsynced, looks good. But my graph says "utilization, percent" and seems to display the actual MBUF size, not in percent.

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

          Fixed, thanks!

          1 Reply Last reply Reply Quote 0
          • A
            adam65535 last edited by

            You rock man… this will be very helpful I think.  I just mentioned something like this a few days ago at the link below.  Are you psychic?
            http://forum.pfsense.org/index.php/topic,64272.msg348934.html#msg348934

            I hope that someday (maybe 2.2 or 2.3) someone with development skills and the spare time might find it important to have alert thresholds for some of these monitored values.  I would love to get an alert from a site that was approaching limits like this.  It would be awesome to detect the impending problem before it causes issues.

            Thanks again for this!

            1 Reply Last reply Reply Quote 0
            • A
              adam65535 last edited by

              I really like that you made the colors very different from each other.  I wish all the other graphs did the same.  It is very hard to tell the different between some of them like the states and the queues.

              1 Reply Last reply Reply Quote 0
              • Derelict
                Derelict LAYER 8 Netgate last edited by

                Any way to get this kind of info on DHCP lease pools?

                1 Reply Last reply Reply Quote 0
                • A
                  adam65535 last edited by

                  This is why I am glad you used different colors…  See the queues screenshot below.  It is nearly impossible to tell the difference between most of the red colors below.

                  ![Screenshot at 2013-07-17 19:19:31.png](/public/imported_attachments/1/Screenshot at 2013-07-17 19:19:31.png)
                  ![Screenshot at 2013-07-17 19:19:31.png_thumb](/public/imported_attachments/1/Screenshot at 2013-07-17 19:19:31.png_thumb)

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

                    @Derelict:

                    Any way to get this kind of info on DHCP lease pools?

                    No. The calculations would be fuzzy at best, and it would involve parsing the entire DHCP leases file (which can be huge) once a minute.

                    Maybe if someone figures out a way to get the pool utilization stats from DHCPD directly (omapi?)

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

                      @adam65535:

                      I really like that you made the colors very different from each other.  I wish all the other graphs did the same.  It is very hard to tell the different between some of them like the states and the queues.

                      Yep, that was the idea… The other graphs do need better colors but thus far nobody has gone through the trouble of trying/finding new or better ones. It's not difficult, just not high on anyone's list of priorities. Check out rrdcolors.inc.php in every theme.

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

                        @adam65535:

                        This is why I am glad you used different colors…  See the queues screenshot below.  It is nearly impossible to tell the difference between most of the red colors below.

                        gitsync or try a snapshot from tomorrow.

                        1 Reply Last reply Reply Quote 0
                        • D
                          doktornotor Banned last edited by

                          @jimp:

                          gitsync or try a snapshot from tomorrow.

                          Much better now… :)

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

                            I'm torn because on the one hand, it makes them easy to distinguish, but on the other, I think it could look better with some better color choices than I made.

                            I documented the RRD color files pretty well when I did the update so if someone wants to come up with some variations (perhaps different colors for different themes), it should be much easier to jump in and figure out what goes where now.

                            1 Reply Last reply Reply Quote 0
                            • D
                              doktornotor Banned last edited by

                              @jimp:

                              I'm torn because on the one hand, it makes them easy to distinguish, but on the other, I think it could look better with some better color choices than I made.

                              Maybe you could find these tools handy for further tweaking:
                              http://www.colorschemer.com/online.html

                              1 Reply Last reply Reply Quote 0
                              • A
                                adam65535 last edited by

                                @jimp:

                                I'm torn because on the one hand, it makes them easy to distinguish, but on the other, I think it could look better with some better color choices than I made.

                                Thanks again for that.  I will check it out after the next snapshot for sure.  I vote for functionality over color matching any day :).  I like them being as different as can be.  If you can't easily tell the difference between them then the graphs are just eye candy :).

                                1 Reply Last reply Reply Quote 0
                                • K
                                  Klaws last edited by

                                  I once edited the RRD GUI so I could seelct my own colors from a drop-down listbox of predefined colors (plus a "default" entry to reatin the theme's native color). I only provided this option for the Queue and Queue Drop colors and, boy, it already cluttered up the RDRD Settings page.

                                  However, if anyone thinks that's an approach to pursue further, I could try to dig up my changes again. However, I'd need assistance with the GUI design, so it looks less butt-ugly.

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    adam65535 last edited by

                                    The color changes make the graphs so much more useful now.  It is very easy to tell the difference between all of the stats on all of the graphs.  I had to pretty much guess before but now it is very obvious which ones are which.

                                    Thanks again!

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      Klaws last edited by

                                      Wow, that's pretty cool. I've always thought that one of my traffic shaper queues was running rogue (but never saw it as an important enough issue to alayze and fix). Now I can see that nothing is running rogue, it was just my partially impaired color-vision.

                                      Yes, the observant reader might have noticed that I have mucked about with the GUI to add options to change the queue colors. Of course, I shot my changes with a careless firmware update a day or two later :-), and never bothered enough to retrieve the changes from the backup.

                                      1 Reply Last reply Reply Quote 0
                                      • ptt
                                        ptt Rebel Alliance last edited by

                                        Have noticed this error  ???  in "Status: System logs: General" :

                                        
                                        php: rc.bootup: The command '/usr/bin/nice -n20 /usr/local/bin/rrdtool update /var/db/rrd/system-mbuf.rrd N:U:U:U:U:U' returned exit code '1', the output was 'ERROR: expected 4 data source readings (got 5) from N:U:U:U:U:U'
                                        
                                        

                                        it seems to be harmless, but posted, just in case ;)

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

                                          I saw it once, but haven't located the cause.

                                          1 Reply Last reply Reply Quote 0
                                          • N
                                            NOYB last edited by

                                            /etc/inc/rrd.inc line 720

                                            Is
                                            mwexec("$rrdtool update $rrddbpath$ifname$mbuf N:U:U:U:U:U");

                                            Should be
                                            mwexec("$rrdtool update $rrddbpath$ifname$mbuf N:U:U:U:U");

                                            1 Reply Last reply Reply Quote 0
                                            • ptt
                                              ptt Rebel Alliance last edited by

                                              ^
                                                Yep.. thats did the trick  ;)

                                              1 Reply Last reply Reply Quote 0
                                              • J
                                                johnnybe last edited by

                                                @jimp:

                                                I'm torn because on the one hand, it makes them easy to distinguish, but on the other, I think it could look better with some better color choices than I made.

                                                I documented the RRD color files pretty well when I did the update so if someone wants to come up with some variations (perhaps different colors for different themes), it should be much easier to jump in and figure out what goes where now.

                                                A long time ago I posted about the default colors of the RRD. Even I made some suggestions at that time:
                                                http://forum.pfsense.org/index.php/topic,16463.msg85559.html#msg85559

                                                Also, check my last post in this topic above.

                                                Check this one as well, for pfSense 2.1-RC0. This topic is in Portuguese, but easy to understand:
                                                http://forum.pfsense.org/index.php/topic,55664.msg297449.html#msg297449

                                                I'm just trying to share and help.

                                                1 Reply Last reply Reply Quote 0
                                                • First post
                                                  Last post

                                                Products

                                                • Platform Overview
                                                • TNSR
                                                • pfSense
                                                • Appliances

                                                Services

                                                • Training
                                                • Professional Services

                                                Support

                                                • Subscription Plans
                                                • Contact Support
                                                • Product Lifecycle
                                                • Documentation

                                                News

                                                • Media Coverage
                                                • Press
                                                • Events

                                                Resources

                                                • Blog
                                                • FAQ
                                                • Find a Partner
                                                • Resource Library
                                                • Security Information

                                                Company

                                                • About Us
                                                • Careers
                                                • Partners
                                                • Contact Us
                                                • Legal
                                                Our Mission

                                                We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                                                Subscribe to our Newsletter

                                                Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                                                © 2021 Rubicon Communications, LLC | Privacy Policy