Ad Widget

Collapse

How to erase the hostname on graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • angelhc
    Senior Member
    Zabbix Certified Specialist
    • Nov 2009
    • 226

    #1

    How to erase the hostname on graphs

    Hello all,
    I can't find any other post about how to not show the server name on graphs so I ask here
    When I create a graph the name only shows what I write but when It's showed on the Monitoring-->Graphs the graph is called like "Hostname:<Graph name>".
    How can I show my graphs with only "<Graph name>"?

    Thanks!

    Regards.
    Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

    http://zabbixes.wordpress.com/
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    You will need to go into the code to affect that change.

    I believe the file you will need to edit is include/graphs.php.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • angelhc
      Senior Member
      Zabbix Certified Specialist
      • Nov 2009
      • 226

      #3
      _Thx Nelsonab but after 2 days looking for the function which create the graph tittle I didn't find it..
      Someone can help us?
      Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

      http://zabbixes.wordpress.com/

      Comment

      • angelhc
        Senior Member
        Zabbix Certified Specialist
        • Nov 2009
        • 226

        #4
        Please, can anybody help us?
        We're prepparing some IT dashboards according to zabbix graphs and is not clean to see the hostname...

        Thanks!
        Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

        http://zabbixes.wordpress.com/

        Comment

        • alixen
          Senior Member
          • Apr 2006
          • 474

          #5
          Hi,

          Originally posted by angelhc
          Please, can anybody help us?
          We're prepparing some IT dashboards according to zabbix graphs and is not clean to see the hostname...

          Thanks!
          You can search "$graph->setHeader" in PHP sources.
          For example in chart2.php around line 135, you'll find:
          Code:
          $chart_header.= $host['host'].': '.$db_data['name'];
          ...
          $graph->setHeader($chart_header);
          Remove
          Code:
          $host['host'].': '.
          from first line and that's it !

          Regards,
          Alixen
          http://www.alixen.fr/zabbix.html

          Comment

          • angelhc
            Senior Member
            Zabbix Certified Specialist
            • Nov 2009
            • 226

            #6
            It's working! thanks so much alixen
            Number of hosts 1600,Number of items +90k,Number of triggers +22k, Number of users +100, New values per second +1270

            http://zabbixes.wordpress.com/

            Comment

            Working...