Ad Widget

Collapse

Graph doesn't show all triggers for an item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acasari
    Junior Member
    • Jan 2014
    • 11

    #1

    Graph doesn't show all triggers for an item

    I have set 4 triggers for free space available item, but the graph from Latest Data, only shows 3 of them (the 4th is when pfree is less than 1%. This trigger works OK since it's firing).

    Is there any know reason for not showing all triggers in a graph?

    This is a screenshot:

    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    Thanks in advance.
  • remzi
    Junior Member
    • Aug 2014
    • 2

    #2
    I have the same problem. There are 5 items and 5 triggers, all 5 items will be shown but only 3 triggers. I tried to set graph height but that didn't changed the situation. It would be nice to know if there is a solution for this problem.

    Zabbix v2.2.2
    Debian Linux 7.5

    Comment

    • filipp.sudanov
      Senior Member
      Zabbix Certified Specialist
      • May 2014
      • 137

      #3
      The limit of max 3 triggers per graph is hardcoded somewhere in zabbix sources. I have not heard if someone has changed that, but it's probably possible to patch the sources.

      Comment

      • remzi
        Junior Member
        • Aug 2014
        • 2

        #4
        Thank you filipp.sudanov you have right, it is hardcoded.

        I updated zabbix to 2.2.5 an the situation was the same.

        Then some search and I found following line in:
        /include/classes/graphdraw/CLineGraphDraw.php on Line 442

        $max = 3;

        and changed to:

        $max = 5;

        it works

        Comment

        • vchrizz
          Junior Member
          • Jul 2017
          • 18

          #5
          thanks for the pointer, this is still the case with zabbix 3.2.8 but now on line 419.

          raise this from 3 to 9 (here on debian)
          Code:
          sed -i 's/$max = 3;/$max = 9;/' /usr/share/zabbix/include/classes/graphdraw/CLineGraphDraw.php

          Comment

          • BigBot89
            Junior Member
            • Sep 2019
            • 1

            #6
            I know this post is ancient, but it solved this exact issue on Zabbix 4.2.

            Comment

            • SteRin
              Junior Member
              • Apr 2020
              • 3

              #7
              Modifying the $MAX value in /usr/share/zabbix/include/classes/graphdraw/CLineGraphDraw.php
              solved the problem for me, on version 4.4.8 it is on line 442 and I raised it from 3 to 10.

              Unfortunately you have to re-apply it if you upgrade/update Zabbix.

              Comment

              Working...