Ad Widget

Collapse

How do you change the default Graph timeline

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luketrot
    Junior Member
    • Nov 2006
    • 14

    #1

    How do you change the default Graph timeline

    Under Screen my graphs are all based on 1 hour timeframe, I would like some of these graphs to be based on 1 day.
  • luketrot
    Junior Member
    • Nov 2006
    • 14

    #2
    Anyone know how to change the default timeline to maybe 12 hours vs 1hr?

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      If you are logged in, ZABBIX remembers your last selection of time period on per graph level.

      I would like to see some global parameters (like this one) to be configured in user profiles.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • Stefaans
        Junior Member
        • Dec 2006
        • 6

        #4
        Having the default graph period adjustable per user will be great! In the meantime, I have changed the default period for graphs (applies to all users) with the following simple modification.

        Edit /include/graphs.inc.php, and find the following line (line 513 in version 1.1.4):
        Code:
        if(!isset($_REQUEST["period"]))	$_REQUEST["period"]=3600;
        This line sets the default period if none is specified (as would be the case on Screens). Simply muliply the period with the number of hours you wish to be the defaul. For example, to show 4 hours:
        Code:
        if(!isset($_REQUEST["period"]))	$_REQUEST["period"]=3600[B][COLOR=Red]*4[/COLOR][/B];

        Comment

        • georgew
          Member
          • Mar 2008
          • 50

          #5
          Originally posted by Alexei
          I would like to see some global parameters (like this one) to be configured in user profiles.
          I agree 100%, this would be a great feature.

          In addition, I should be able to set the default on each graph as I build it, AND I would like to be able to set it again for each graph I lay on a screen.

          That way I can build a custom screen where I could show the same graph two or more times, but with different time periods.... Or a screen that shows the last day/week/month of activity for a particular group of servers...

          Comment

          • freelsd
            Member
            • Jul 2009
            • 46

            #6
            Guys - I cant change default timeline on:
            ZABBIX Server (daemon) v1.6.5 (revision 7442) (3 April 2009)

            I find 3600 in graphs.inc.php but any changes has no result. How can I change default timeline?

            Comment

            • freelsd
              Member
              • Jul 2009
              • 46

              #7
              UP! Please help )

              Comment

              • freelsd
                Member
                • Jul 2009
                • 46

                #8
                include/defines.inc.php

                define('ZBX_PERIOD_DEFAULT', U_time);

                )))

                Comment

                • ash1011
                  Junior Member
                  • Sep 2013
                  • 2

                  #9
                  Zabbix

                  Im new to zabbix please let me know how to edit the Zabbiix Graph x axis and y axis unit ?

                  Thanks in Advance

                  Comment

                  Working...