NTop fonts in RRD graphs are Squares.
-
I'm running ntop-ng, not ntop, however, while looking at an unrelated problem, I noticed some broken symbolic links for ntop-ng fonts.
I found them using this command:find / -type l ! -exec test -r {} \; -print
I fixed it by creating this symbolic link:
ln -s /usr/pbi/ntopng-i386/local/etc/fonts/ /usr/local/etc/fonts
Whether or not that does anything for the rrd graphs, I don't know, since I have no idea how to get the ntop-ng rrd graphs to show up. ???
I find lots of .rrd files under /var/db/ntopng, but no clue how to get them to show up in status->rrd graphs. -
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
-
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
-
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 repositoriesAny ideas?
thanks!
-
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
-
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!
-
Did same thing but also no luck. Any other suggestions?
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!
-
@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.
-
Hello,
I have the same problem. Please, someone an idea to fix this font problem when generating the graphs in ntop?
greetz
-
I'm not sure that this will help with your problem.
I have noticed older OS's do not display new fonts correctly.
-
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 -
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.....