Ad Widget

Collapse

Zoom on a graph

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Zoom on a graph

    It's not possible to zoom on a graph on a range lower than 1 hour. (and it still not possible by clicking and selecting the range we would like to see)

    Is it normal ?

    Thank you.

    Philippe.

    #2
    yes, one hour is the minimal graph period
    Zabbix 3.0 Network Monitoring book
    Zabbix tips and inspiration (blog)

    Comment


      #3
      1h maximum zoom is not enough

      Hi
      I think zooming feature is very important and 1h maximum zoom is not enough for hosts with interval 5 second, because in 1 hour zabbix gets 720 values!!
      Is there any module can increase this feature??

      Thanks in advance

      Comment


        #4
        5 second interval sounds too short for most sane installations.
        if you really need it and if you really know what you are doing, see http://www.zabbix.com/documentation/...config/defines, ZBX_MIN_PERIOD
        Zabbix 3.0 Network Monitoring book
        Zabbix tips and inspiration (blog)

        Comment


          #5
          Hi richlv.

          Is there some other config or action that I am supposed to make to get this functionality working? I've changed the ZBX_MIN_PERIOD to "600" (10 min) and the graphs continue to accept only "1 h" as minimum zoom period. Even if I logout and login again the change doesn't take effect.

          Comment


            #6
            hmm. no idea, i've never actually tried to change it myself
            Zabbix 3.0 Network Monitoring book
            Zabbix tips and inspiration (blog)

            Comment


              #7
              There is a similar issue with a ZBX_MAX_PERIOD... I can set it to 3*365*86400 but there is no way to view last 3 year period on a single graph.
              There are calendar option to specify the date, but when either date is changed, it resets the other one to the same year and only way to see older data, is to "scroll" left using «« markers.

              Comment


                #8
                did you try changing dates withing the calendar popups with mode switched to "dynamic" ?
                Zabbix 3.0 Network Monitoring book
                Zabbix tips and inspiration (blog)

                Comment


                  #9
                  Hi Richlv. For me, this didn't work! Maybe this issue deserves a bug applying on the tracker.

                  Comment


                    #10
                    if using dynamic mode calendar does not set the date to whatever time you choose (assuming there's data), that's a bug and should be reported on the tracker. before doing so, please try to reproduce the problem with svn head version, thanks.
                    Zabbix 3.0 Network Monitoring book
                    Zabbix tips and inspiration (blog)

                    Comment


                      #11
                      I've tested svn head version and the problem persists. I'll create an issue on the tracker.

                      Comment


                        #12
                        Everyone is welcome to vote:
                        https://support.zabbix.com/browse/ZBX-2517

                        Comment


                          #13
                          Using dynamic mode together with ZBX_MAX_PERIOD worked me. Now I could view 3 years data, tnx. Tested with 1.8.2 stable.

                          Comment


                            #14
                            Hello all,

                            I was also in need of shorter time periods in graphs.
                            I suspect the vars in the define file are left from the time Zabbix used the old graphing system.

                            I adjusted the values in js/gtlc.js and it seems to work for me.

                            Here is a diff between the old and new version of the file:

                            Code:
                            linux-epfq:/usr/share/zabbix # diff js/gtlc.js.bak js/gtlc.js
                            67c67
                            <       if(!isset('period', time))              time.period = 3600;
                            ---
                            >       if(!isset('period', time))              time.period = 300;
                            273c273
                            <       var period = 3600;
                            ---
                            >       var period = 300;
                            421c421
                            < minperiod: 3600,                              // minimal allowed period
                            ---
                            > minperiod: 300,                               // minimal allowed period
                            1492c1492
                            <       var zooms = [3600, (2*3600), (3*3600), (6*3600), (12*3600), 86400, (7*86400), (14*86400), (30*86400), (90*86400), (180*86400), (365*86400)];
                            ---
                            >       var zooms = [300, 3600, (2*3600), (3*3600), (6*3600), (12*3600), 86400, (7*86400), (14*86400), (30*86400), (90*86400), (180*86400), (365*86400)];
                            1529c1529
                            <       var moves = [3600, (12*3600), 86400, (7*86400), (30*86400), (180*86400), (365*86400)];
                            ---
                            >       var moves = [300, 3600, (12*3600), 86400, (7*86400), (30*86400), (180*86400), (365*86400)];
                            I hope it's useful to someone.
                            With kind regards,

                            Raymond

                            ---
                            Online Zabbix tutorials:
                            http://www.zbxtutorials.org

                            Comment


                              #15
                              more zoom!

                              Thanks to qix, I was able to get what I wanted. All I was looking for was more zoom than one hour.

                              I just made a modification to one of the lines he referenced.
                              On line 421 of /usr/share/zabbix/js/gtlc.js I set minperiod to 60 seconds instead of 3600.

                              Update:
                              After a reinstall, I realized there was one other change that made this possible:
                              On line 32 of /usr/share/zabbix/include/defines.inc.php I set ZBX_MIN_PERIOD to match (60 seconds).

                              Originally posted by qix View Post
                              Hello all,

                              I was also in need of shorter time periods in graphs.
                              I suspect the vars in the define file are left from the time Zabbix used the old graphing system.

                              I adjusted the values in js/gtlc.js and it seems to work for me.

                              Here is a diff between the old and new version of the file:

                              Code:
                              linux-epfq:/usr/share/zabbix # diff js/gtlc.js.bak js/gtlc.js
                              67c67
                              <       if(!isset('period', time))              time.period = 3600;
                              ---
                              >       if(!isset('period', time))              time.period = 300;
                              273c273
                              <       var period = 3600;
                              ---
                              >       var period = 300;
                              421c421
                              < minperiod: 3600,                              // minimal allowed period
                              ---
                              > minperiod: 300,                               // minimal allowed period
                              1492c1492
                              <       var zooms = [3600, (2*3600), (3*3600), (6*3600), (12*3600), 86400, (7*86400), (14*86400), (30*86400), (90*86400), (180*86400), (365*86400)];
                              ---
                              >       var zooms = [300, 3600, (2*3600), (3*3600), (6*3600), (12*3600), 86400, (7*86400), (14*86400), (30*86400), (90*86400), (180*86400), (365*86400)];
                              1529c1529
                              <       var moves = [3600, (12*3600), 86400, (7*86400), (30*86400), (180*86400), (365*86400)];
                              ---
                              >       var moves = [300, 3600, (12*3600), 86400, (7*86400), (30*86400), (180*86400), (365*86400)];
                              I hope it's useful to someone.
                              Last edited by alexjhart; 05-12-2011, 00:02.

                              Comment

                              Announcement

                              Collapse
                              No announcement yet.
                              Working...
                              X