Ad Widget

Collapse

Ability to show 4 year period on graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tytanick
    Junior Member
    • Feb 2020
    • 10

    #1

    Ability to show 4 year period on graphs

    Hello guys,
    I am gathering my own values into zabbix (totally not network or OS ones) - other stats like sale, number of users etc.
    Few years ago and also now i see that it is still not possible to view longer than 2 year period on dashboard graphs.
    I would like to ask is there anything simple in code that could be changed to bypass "Maximum time period to display is 731 days." period.

    Also it would be super nice if this period would not be limited.
    P.S - ofcourse i am gathering even 10 years of stats in zabbix database so the data are there but i just cant see them on one graph unless i put two of them side by side and one is showing 2017/2018 and second 2019/2020
  • marian@mari.cz
    Junior Member
    • Aug 2019
    • 4

    #2
    I had exactly the same issue. This update in code will expand time range to 20 years in Zabbix 5.0.3:

    /usr/share/zabbix/include/defines.inc.php:

    + define('ZBX_MAX_PERIOD', 631620010);
    - define('ZBX_MAX_PERIOD', 63162001);

    You have to be careful with future updates.


    Last edited by [email protected]; 07-11-2020, 19:34.

    Comment

    • tytanick
      Junior Member
      • Feb 2020
      • 10

      #3
      Originally posted by [email protected]
      I had exactly the same issue. This update in code will expand time range to 20 years in Zabbix 5.0.3:
      /usr/share/zabbix/include/defines.inc.php:
      + define('ZBX_MAX_PERIOD', 631620010);
      - define('ZBX_MAX_PERIOD', 63162001);
      THX IT WORKS !!!
      Thanks Marian

      Comment

      • marian@mari.cz
        Junior Member
        • Aug 2019
        • 4

        #4
        Originally posted by tytanick

        THX IT WORKS !!!
        Thanks Marian
        No problem, the only issue is to remember updating this file with every code update. In this file you can expand lot of limitations. For example when you want to sum more items in "new graphs" (Dashboard) there is default limit to 50

        define('SVG_GRAPH_MAX_NUMBER_OF_METRICS', 50);


        Comment

        Working...