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

    NTop fonts in RRD graphs are Squares.

    Scheduled Pinned Locked Moved Traffic Monitoring
    13 Posts 12 Posters 7.4k 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.
    • T
      tdale
      last edited by

      Hello,

      I just wanted to give you the solution that worked for me. I had the EXACT same issue as you and I'm sure others are having it too.

      If '/usr/local/etc/fonts/' doesn't exist on your system do the following steps.

      1. log into your server
      2. push 8 for a shell prompt
      3. type 'pkg install xorg-fonts-7.7'
      4. after it installs restart the server
      5. check ntop and all should be well.

      Thanks,

      Tom

      1 Reply Last reply Reply Quote 0
      • G
        gsmithe
        last edited by

        Tom,

        Thanks for this solution. It worked great for me on 2.2.1. I'd like to add that I didn't have to restart the firewall. I just stopped and started ntop, and the display updated fine.

        • Gary
        1 Reply Last reply Reply Quote 0
        • B
          Bibliophile
          last edited by

          When I enter the following command:

          pkg install xorg-fonts-7.7

          I get the following response:

          Updating FreeBSD repository catalogue…
          FreeBSD repository is up-to-date.
          All repositories are up-to-date.
          pkg: No packages available to install matching 'xorg-fonts-7.7' have been found in the repositories

          Any ideas?

          thanks!

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

            A newer package has been released.

            While searching for the same issue I found that running the following showed the correct version.

            pkg search xorg-fonts
            

            I then ran:

            pkg install xorg-fonts-7.7_1
            
            1 Reply Last reply Reply Quote 0
            • B
              Bibliophile
              last edited by

              @jspinuzzi:

              A newer package has been released.

              While searching for the same issue I found that running the following showed the correct version.

              pkg search xorg-fonts
              

              I then ran:

              pkg install xorg-fonts-7.7_1
              

              Thanks for the tip - the newer fonts have been installed.  However, that did not solve the problem.  So, I manually created the link as recommended by ESPNSTI:

              ln -s /usr/pbi/ntopng-i386/local/etc/fonts/ /usr/local/etc/fonts

              …and re-started both ntop, then  the entire firewall...with the same results (Squares for text on ntop RRD graph on both Chrome and IE).  Any other ideas?

              BTW - bandwidthd's graphs all look good - I just prefer nTop's data...

              Thanks!

              1 Reply Last reply Reply Quote 0
              • R
                reloded
                last edited by

                Did same thing but also no luck. Any other suggestions?

                @Bibliophile:

                @jspinuzzi:

                A newer package has been released.

                While searching for the same issue I found that running the following showed the correct version.

                pkg search xorg-fonts
                

                I then ran:

                pkg install xorg-fonts-7.7_1
                

                Thanks for the tip - the newer fonts have been installed.  However, that did not solve the problem.  So, I manually created the link as recommended by ESPNSTI:

                ln -s /usr/pbi/ntopng-i386/local/etc/fonts/ /usr/local/etc/fonts

                …and re-started both ntop, then  the entire firewall...with the same results (Squares for text on ntop RRD graph on both Chrome and IE).  Any other ideas?

                BTW - bandwidthd's graphs all look good - I just prefer nTop's data...

                Thanks!

                1 Reply Last reply Reply Quote 0
                • D
                  dork.buttons
                  last edited by

                  @luky:

                  Did same thing but also no luck. Any other suggestions?

                  I've given up, at least for now, and am trying ntopng.  I am hoping for something shiny to show folks in part to help justify some much gruntier hardware for this project.  Letting them drive off an unpaved roadbed into those weird boxes -  a total nonstarter.

                  1 Reply Last reply Reply Quote 0
                  • T
                    tommyverburgh
                    last edited by

                    Hello,

                    I have the same problem. Please, someone an idea to fix this font problem when generating the graphs in ntop?

                    greetz

                    1 Reply Last reply Reply Quote 0
                    • H
                      HooKed
                      last edited by

                      I'm not sure that this will help with your problem.

                      I have noticed older OS's do not display new fonts correctly.

                      1 Reply Last reply Reply Quote 0
                      • P
                        piercejr
                        last edited by

                        this is STILL a problem with 2.2.6-RELEASE (amd64) built on Mon Dec 21 14:50:08 CST 2015 …

                        I installed the latest xorg-fonts-7.7_1  and I'm quite hesitant to do that symlink since both directories exist (its -amd64 rather than -386 on my system).

                        /usr/local/etc/fonts:
                        total 24
                        drwxr-xr-x  2 root  wheel  1536 Dec 25 10:31 conf.avail
                        drwxr-xr-x  2 root  wheel  1024 Dec 25 10:31 conf.d
                        -rw-r--r--  1 root  wheel  5502 Dec 11 17:16 fonts.conf
                        -rw-r--r--  1 root  wheel  5502 Dec 11 17:16 fonts.conf.sample
                        -rw-r--r--  1 root  wheel  7250 Dec 11 17:16 fonts.dtd

                        /usr/pbi/ntop-amd64/local/etc/fonts:
                        total 24
                        drwxr-xr-x  2 root  wheel  1536 Jun 26  2014 conf.avail
                        drwxr-xr-x  2 root  wheel  1024 Jun 26  2014 conf.d
                        -r--r--r--  1 root  wheel  5502 Jun 26  2014 fonts.conf
                        -r--r--r--  1 root  wheel  5502 Jun 26  2014 fonts.conf.default
                        -r--r--r--  1 root  wheel  7253 Jun 26  2014 fonts.dtd

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

                          Directly looking at the Makefile of Ntop in FreeBSD @Ports the URW fonts package is marked as a dependency:

                          
                          LIB_DEPENDS=    libgdbm.so:${PORTSDIR}/databases/gdbm \
                                          libevent.so:${PORTSDIR}/devel/libevent2
                          BUILD_DEPENDS=  rrdtool>=1.2:${PORTSDIR}/databases/rrdtool \
                                          dot:${PORTSDIR}/graphics/graphviz \
                                          geoiplookup:${PORTSDIR}/net/GeoIP
                          RUN_DEPENDS:=   ${BUILD_DEPENDS} \
                                          urwfonts>0:${PORTSDIR}/x11-fonts/urwfonts
                          
                          

                          this can be installed with: pkg install urwfonts.

                          I haven't narrowed this down yet 100% but am working on it, since this isn't a fix but getting closer I feel…. (as have just started with PFsense though I know FreeBSD pretty well).

                          Also under the path:

                          /usr/pbi/ntop-amd64/local/fonts/conf.d

                          there is a file called:

                          30-urw-aliases.conf

                          whose contents look like this:

                          
                           <fontconfig><alias binding="same"><family>Zapf Dingbats</family>
                          	  <accept><family>Dingbats</family></accept></alias> 
                          	 <alias binding="same"><family>ITC Zapf Dingbats</family>
                          	  <accept><family>Dingbats</family></accept></alias> 
                          	 <match target="pattern"><test name="family" compare="eq" ignore-blanks="true"><string>Symbol</string></test> 
                          	  <edit name="family" mode="append" binding="same"><string>Standard Symbols L</string></edit></match></fontconfig> 
                          
                          

                          I think (though I maybe totally wrong) that this might have something to do with the fonts not displaying…. as in a missing symlink or path location to the urw font package??

                          Still investigating however.....

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