Ad Widget

Collapse

Zabbix graphs are missing text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moshikoy
    Member
    • Aug 2017
    • 56

    #1

    Zabbix graphs are missing text

    Hi,
    All my zabbix graphs are not showing a single character on them (see attachment)
    I suspect a font issue

    specs are: zabbix 3.4.1, installed on Ubuntu 1604 server

    - Moshe
    Attached Files
  • moshikoy
    Member
    • Aug 2017
    • 56

    #2
    ehy, anyone can assist on this?

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      How did you install Zabbix?
      If you install using the package, that problem should not occur.

      Please check whether PHP supports TrueType and GD, and whether the display font in the graph is deployed.

      Comment

      • moshikoy
        Member
        • Aug 2017
        • 56

        #4
        Originally posted by Atsushi
        How did you install Zabbix?
        If you install using the package, that problem should not occur.

        Please check whether PHP supports TrueType and GD, and whether the display font in the graph is deployed.
        Hi,
        I've installed zabbix 3.4.1 from packages, on Ubuntu 16.04 LTS
        Using the below instructions



        Checking the PHP I can see that GD supports TrueType (see picture below)



        where else can I check?

        - Mosh


        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          Originally posted by moshikoy
          where else can I check?
          If you will check php logs probably you will find that php cannot open/find font file.
          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
          https://kloczek.wordpress.com/
          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
          My zabbix templates https://github.com/kloczek/zabbix-templates

          Comment

          • moshikoy
            Member
            • Aug 2017
            • 56

            #6
            Originally posted by kloczek

            If you will check php logs probably you will find that php cannot open/find font file.
            /var/log/apache2/error.log is empty

            checked php --info - and found nothing
            root@m:/# php --info | grep error -i
            display_errors => Off => Off
            display_startup_errors => Off => Off
            error_append_string => no value => no value
            error_log => no value => no value
            error_prepend_string => no value => no value
            error_reporting => 22527 => 22527
            html_errors => Off => Off
            ignore_repeated_errors => Off => Off
            log_errors => On => On
            log_errors_max_len => 1024 => 1024
            track_errors => Off => Off
            xmlrpc_error_number => 0 => 0
            xmlrpc_errors => Off => Off
            opcache.error_log => no value => no value

            Comment

            • kloczek
              Senior Member
              • Jun 2006
              • 1771

              #7
              In zabbix web frontend directory in fonts is DejaVuSans.ttf file.

              Code:
              $ grep -r DejaVuSans *
              Binary file fonts/DejaVuSans.ttf matches
              include/defines.inc.php:define('ZBX_GRAPH_FONT_NAME',        'DejaVuSans'); // font file name
              Do you have this ttf file installed?
              http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
              https://kloczek.wordpress.com/
              zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
              My zabbix templates https://github.com/kloczek/zabbix-templates

              Comment

              • moshikoy
                Member
                • Aug 2017
                • 56

                #8
                Originally posted by kloczek
                In zabbix web frontend directory in fonts is DejaVuSans.ttf file.

                Code:
                $ grep -r DejaVuSans *
                Binary file fonts/DejaVuSans.ttf matches
                include/defines.inc.php:define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
                Do you have this ttf file installed?
                Yes, I do

                root@server:~# fc-list | grep -i DejaVuSans
                /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
                /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: DejaVu Sans:style=Book
                /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf: DejaVu Sans:style=Bold
                /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold

                Comment

                • kloczek
                  Senior Member
                  • Jun 2006
                  • 1771

                  #9
                  So you are not aware of fact that web server is not able to read anything from outside document root base directory and this is why this font must be placed in web application directory tree?
                  http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
                  https://kloczek.wordpress.com/
                  zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
                  My zabbix templates https://github.com/kloczek/zabbix-templates

                  Comment

                  Working...