Ad Widget

Collapse

Text on X Axis of Graphs is Unreadable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wsanders
    Junior Member
    • Feb 2014
    • 7

    #1

    Text on X Axis of Graphs is Unreadable

    Is there any way to change the font used on the x-axis of graphs? It is unreadable, we are running zabbix 2.4 on ubuntu 12.

    See attached screenshot ....
    Attached Files
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    defines.inc.php:
    Code:
    define('ZBX_FONTPATH', realpath('fonts')); // where to search for font (GD > 2.0.18)
    define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      Check web frontend code:
      Code:
      $ ggrep -r FONT_NAME include/defines.inc.php
      define('ZBX_GRAPH_FONT_NAME',           'DejaVuSans'); // font file name
      define('ZBX_FONT_NAME', 'DejaVuSans');
      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

      • wsanders
        Junior Member
        • Feb 2014
        • 7

        #4
        Thanks, I can read X-axis again....

        In Ubuntu (and probably lots of other distros),

        define('ZBX_FONTPATH', realpath('/usr/share/fonts/truetype/ttf-dejavu')); // where to search for font (GD > 2.0.18)
        define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name


        Thanks to all who responded

        Comment

        Working...