Ad Widget

Collapse

2.2.1: graph display of "unixtime" items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #1

    2.2.1: graph display of "unixtime" items

    Hi all,
    could it be that the graph display procedure for items configured as "unixtype" changed from 2.0 to 2.2?

    I am in the process of migrating a 2.0 install (applicance) to a 2.2 (from scratch).
    While almost all of my templates work in the ne environment, I found that items with that particular unit behave different regarding graphs.

    I have a continously increasing counter which delivers the last run date as "unixtime".
    In 2.0 it shows a straight rising line which is the expected behaviour.
    In 2.2 it shows only a horizontal line while it still updates the graph legend with current value.

    2.0: https://www.netzwerk-aktiv.com/owncl...49b24de177e8f4

    2.2: https://www.netzwerk-aktiv.com/owncl...05a8579e985bb6

    Does someone else see this as well? How to fix?
    Thanks for any hints!
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Is it correct that the first graph is from 17 Jan to 16 Feb (1 month length) and the second graph is only for last 12 hours (16 Feb 00:35 - 16 Feb 12:35) ?

    When you have so different scale on graphs you cannot say correctly how fast rising the line, correct?
    Sincerely yours,
    Aleksey

    Comment

    • steveboyson
      Senior Member
      • Jul 2013
      • 582

      #3
      Yes, since the 2nd install (2.2.1) is a pretty fresh install.

      It still shows the above described graph...

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        Well, on the graph from 2.2 version I can see the different numbers for Last and Min value.
        It means that you are collecting information correctly.
        But the graph cannot be shown correctly - so small delta for so big number.

        2014-02-16 11:07:12 => 1392548832
        2014-02-16 00:07:11 => 1392509231
        1392548832 - 1392509231 = 39601
        100* (39601 / 1392548832) = 0.0028437%

        It's hard to see the changing of graph which is less than three thousandths of percent, right?
        Sincerely yours,
        Aleksey

        Comment

        • steveboyson
          Senior Member
          • Jul 2013
          • 582

          #5
          That is not the point. Please see screenshot here of working 2.0 install.



          It is also an intervall of 12 hours and displays correctly.

          [EDIT] In my opinion it doesn't matter what intervall is used. If I expect increasing values once per hour and have an intervall of 12 hours I would expect to see 12 new values. I get these values but they are not displayed correctly when graphed.
          Last edited by steveboyson; 17-02-2014, 20:16.

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #6
            Do you see the difference in Scale of two your graphs?

            (Sorry, I cannot post any image/pictures/links because of the forum settings:
            Code:
            Too many live links/images found in your post content. 
            Please edit your post or contact the administrator.
            )

            In the first graph I can see the huge range between Y axis MIN value and Y axis MAX value :
            min = ...0.30 19:40:00
            max = ...1.24 16:06:40

            In the same time on second graph the minimal and maximal value have not a big difference:
            min = ..2.17 06:30:00
            max = ..2.17 16:30:20

            Did you try to manually setup the same scale on the first graph for item "Zabbix housekeeper: last end-time" as you have on the second graph?
            Sincerely yours,
            Aleksey

            Comment

            • steveboyson
              Senior Member
              • Jul 2013
              • 582

              #7
              Pls. see pic #3.

              #2 (2.2.1, broken) and #3 (2.0, working) have the same x-scale of 12 hours.

              Comment

              • aib
                Senior Member
                • Jan 2014
                • 1615

                #8
                Sorry for my dumb question.
                I still cannot understand your problem

                Pic. #1 :
                - Y axis (..1.12 05:13:20 to ..2.21 17:26:40) ~ 1 month and 9 days
                - X axis (2014-01-17 14:26:28 - 2014-02-16 10:41:59) ~ 1 month

                Pic. #2 :
                - Y axis (..0.30 19:40:00 - ..1.24 16:06:40) ~ at least 4(four) year!!!
                looks like - 2012.10.30 -> 2016.11.24)
                - X axis from 2014-02-16 00:07:11 to 2014-02-16 11:07:12 ~ 12 hours

                Pic. #3 :
                - Y axis (..2.17 06:30:00 to ..2.17 16:13:20) ~ 10 hours
                - X axis (17.02 6:52 17.02 18:52) = 12 hours

                Now when we compare the scale of Y axis on picture #1, #2, #3 we can see the difference between those three numbers:
                - for Pic. #1 scale ~ 1 month and 9 days
                - for Pic. #2 scale ~ at least 4 years
                - for Pic. #3 scale ~ 12 hours

                Sorry if I explained it wrongly before.

                Do you understand now what I meant before when I told you that you cannot correctly compare that three graphs?
                Sincerely yours,
                Aleksey

                Comment

                • steveboyson
                  Senior Member
                  • Jul 2013
                  • 582

                  #9
                  Graph 2 (2.2.1)

                  from Feb 16, 00:35 to Feb 16, 12:35
                  ==> 12 hours
                  showing a horizontal line --> WRONG

                  Graph 3 (2.0.10)

                  from Feb 17, 6:52 to Feb 17, 18:52
                  ==> 12 hours
                  showing a constantly rising line --> CORRECT


                  So, yes! I pretty much think these graphs are compareable.

                  Comment

                  • aib
                    Senior Member
                    • Jan 2014
                    • 1615

                    #10
                    I don't think so!

                    You have completely different scale for Y axis and you cannot compare those graph.

                    Use the same scale, draw new graph and then we will talk more about your graph.
                    Sincerely yours,
                    Aleksey

                    Comment

                    • steveboyson
                      Senior Member
                      • Jul 2013
                      • 582

                      #11
                      Graph 2 has an y-axis starting at Feb 17, 6:30 and ending at Feb 17, 16:13
                      and displays the expected graph.

                      Graph 3 has an weird x-axis scaling (you're right on that!). Might be part of the problems. Nevertheless, no matter what scale I choose the displayed graph is just a horizontal line. Also when selected vial "latest data".

                      I consider that an error.

                      !!! Please note that the same backend script runs on both zabbix servers !!!
                      So the returned values are consistent (although of course not identical).

                      Comment

                      • aib
                        Senior Member
                        • Jan 2014
                        • 1615

                        #12
                        When you are using Simple Graph function - you cannot change the Y axis settings (MIN and MAX)

                        But you still can create your own graph and change the default value for Y axis MIN and MAX settings.
                        Sincerely yours,
                        Aleksey

                        Comment

                        • steveboyson
                          Senior Member
                          • Jul 2013
                          • 582

                          #13
                          The graph type is defined in a template and is of type "Normal" with Y- and X-axis set to "calculated".

                          When I choose the item data from "last data" the graph looks identical (wrong).
                          And that is AFAIK a "simple graph" since it has noc configuration options.
                          Still broken.

                          Comment

                          • aib
                            Senior Member
                            • Jan 2014
                            • 1615

                            #14
                            Finally, after some exercises with my own Zabbix installation, I completely agree with you.

                            The scale for Y axis was calculated in the weird way.
                            And there is no correct way to get smoothly rising up line without manual configuration of graph, even when you collecting information for the period longer than 1 month.

                            Sorry if I gave you hard time to argue with me.
                            Sincerely yours,
                            Aleksey

                            Comment

                            • steveboyson
                              Senior Member
                              • Jul 2013
                              • 582

                              #15
                              Bump and pushing up.
                              Meanwhile we did a 2nd install - this time on Debian wheezy.
                              Zabbix server v2.2.2 (revision 42525) (12 February 2014)
                              Compilation time: Feb 16 2014 19:40:11

                              Oh wonder wonder - behaviour is the same.

                              Under "last values" I have:

                              Timestamp Value
                              2014.Mar.07 20:46:41 1394220493
                              2014.Mar.07 19:46:41 1394216892
                              2014.Mar.07 18:46:41 1394213290
                              2014.Mar.07 17:46:41 1394209688
                              2014.Mar.07 16:46:41 1394206086
                              2014.Mar.07 15:46:41 1394202485

                              but the graph still shows a horizontal line and not a continiuos diagonal line.

                              Anyone?
                              Last edited by steveboyson; 07-03-2014, 22:47. Reason: Version added.

                              Comment

                              Working...