Ad Widget

Collapse

net.if.total - Graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sorciq
    Junior Member
    • Aug 2012
    • 15

    #1

    net.if.total - Graph

    Hi all!

    It's my first post here, so I would like to welcome everyone. ;-)

    But, get to the point. I have problem with traffic calculation. I have no idea, why when I restart my server graph with monitoring traffic reset. Also when interfaces reset count TX and RX it's happen the same. Why?

    Why zabbix doesn't add value all the time and shows up as it should?

    Maybe I have wrong items...
    net.if.in[eth0,bytes], store value as is, numeric(float), Unit B, what else I have to do or change?

    Regards,
    Simon
  • raoul
    Junior Member
    • Nov 2011
    • 29

    #2
    Hi,
    What do you mean by graph resets ?
    There's no more history data in graph, or last value goes back to 0 ?
    Can you attach a hard copy of your graph ?
    Cheers,
    r/

    Comment

    • sorciq
      Junior Member
      • Aug 2012
      • 15

      #3
      Hi,

      Thank you for your replay.

      I mean, when RX or TX bytes on interfaces reset my Graph also reset. I susspect, that normally shoudn't.

      I attached image: http://postimage.org/image/xl1rg0r47/full/

      You can see three "pick" - I think is wrong and Zabbix should cumulate.

      Regards,
      Simon

      Comment

      • raoul
        Junior Member
        • Nov 2011
        • 29

        #4
        your interface counters reset happens at 01:50 ?
        Zabbix agent information is gathered from server ; so when you reset counters, Zabbix agent can only send the current values (0 or so at the moment counters have just been reset).

        Comment

        • sorciq
          Junior Member
          • Aug 2012
          • 15

          #5
          Ok, It's loggical. But, did Zabbix should not add preveious value to current and continue the graph? Because he always stop before reach 10GB.

          I'm using agent 2.0.2 on server, and latest full distriubtion of zabbix-server (Xen guest).

          Maybe I show you how I create items:

          Incoming traffic: http://postimage.org/image/lta2pbbvv/
          Outgoin traffic looks like as incoming
          Total traffic: http://postimage.org/image/apbwgnhon/

          Is that correct?

          Regards,
          Simon

          Comment

          • raoul
            Junior Member
            • Nov 2011
            • 29

            #6
            As long as there's some traffic, you can see your absolute values increasing.
            As soon as you clear counters, they go back to 0 ... as counters value is 0 since this moment ... then increase again.
            The behaviour really seems normal to me.
            Cheers,
            r/

            Comment

            • sorciq
              Junior Member
              • Aug 2012
              • 15

              #7
              I cannot understand why Total traffic on graph back to 0. But maybe it's working thats way.

              But, second thing. Why max value of traffic total is all the time 7,59GB? This is should be increasing all the time; in this moment I don't know what traffic is from entire month, because always reset or stop on before reach 10GB.

              Have you look on my items settings? Is that correct?

              Regards,
              Simon

              Comment

              • raoul
                Junior Member
                • Nov 2011
                • 29

                #8
                Yes your configuration seems correct.
                Values are stored "as is", which means as gathered from the servers interface counters.
                I don't know why counter always resets before reaching 10GB ... did you manually check on your server ? Are counter displaying values different from the ones you see in Zabbix ?

                Comment

                • sorciq
                  Junior Member
                  • Aug 2012
                  • 15

                  #9
                  Hi again!

                  So, please tell me... how I can check how many data I downloaded or uploaded durng the month if every counter reset on my interfaces zabbix not cumulate the data?

                  For example:
                  I have 4GB outcoming and 4GB incoming. Total traffic is 8GB. My interfaces reset counter (what is normally). Then it start count from the begining, but it should be add new traffic to last one? That is correct?

                  Best regards,
                  Simon

                  Comment

                  • SirMax
                    Junior Member
                    • Jul 2012
                    • 14

                    #10
                    The first thing i have thought about was:
                    create a delta item, then create calculate item, which will be sum all deltas.
                    Though Zabbix is not a traffic calculation program, imho.

                    Comment

                    • sorciq
                      Junior Member
                      • Aug 2012
                      • 15

                      #11
                      Hi,

                      Thank you for your reply.

                      So, for example I have to set "Store value" as Delta (simple change). Key: net.if.in[eth0,bytes]; type of information Numeric. The same for .out and total.

                      ok, but I cannot understand how to create calculate item. ;-( Zabbix required Key, but what type of key I should put? And Formula? last(net.if.in[eth0,bytes]) or sum()?

                      I don't know.

                      Best Regards,
                      Simon

                      Comment

                      • SirMax
                        Junior Member
                        • Jul 2012
                        • 14

                        #12
                        Sorry for a long answer.

                        I have made a little trick:
                        create item like this:

                        Name: testsumtraff
                        Type: Calculated
                        key: testsum
                        Formula: last("net.if.out[Intel(R) PRO/1000 MT Network Adapter]") + last("testsum")

                        Looks like this trick is working, but, this counter is not reliable.

                        one of the problems: It don't work untill you have a first value for the key "testsum"
                        Workaround create item with formula with last("net.if.out[Intel(R) PRO/1000 MT Network Adapter]"), then after a couple of minutes change to increment formula.

                        IMHO this is a bad solution....

                        Comment

                        • sire
                          Senior Member
                          • Jul 2010
                          • 210

                          #13
                          Originally posted by SirMax
                          Formula: last("net.if.out[Intel(R) PRO/1000 MT Network Adapter]") + last("testsum")
                          Yes, this is a bad solution, because last("net.if.out[Intel(R) PRO/1000 MT Network Adapter]") will not count all traffic deltas since the last update of testsum. Better use something like sum("net.if.out[Intel(R) PRO/1000 MT Network Adapter]",60)+last("testsum"). However this will not be accurate too.
                          Regards,
                          Sergey Syreskin

                          Monitored hosts: 2646 / Active items: 23604 / Server performance: 765.74

                          Temporary out of Zabbix business

                          Comment

                          • SirMax
                            Junior Member
                            • Jul 2012
                            • 14

                            #14
                            Originally posted by sire
                            Yes, this is a bad solution, because last("net.if.out[Intel(R) PRO/1000 MT Network Adapter]") will not count all traffic deltas since the last update of testsum. Better use something like sum("net.if.out[Intel(R) PRO/1000 MT Network Adapter]",60)+last("testsum"). However this will not be accurate too.
                            If net.if.out[Intel(R) PRO/1000 MT Network Adapter] update time is 60 second (and our counter update is the same 60 sec too), then we can assume that my expression is correct.
                            I have done this solution as an example of possibility to do smth like traffic counter.
                            But this solution is not accurate, of course

                            Comment

                            • sire
                              Senior Member
                              • Jul 2010
                              • 210

                              #15
                              Originally posted by SirMax
                              If net.if.out[Intel(R) PRO/1000 MT Network Adapter] update time is 60 second (and our counter update is the same 60 sec too), then we can assume that my expression is correct.
                              I agree with you.
                              Regards,
                              Sergey Syreskin

                              Monitored hosts: 2646 / Active items: 23604 / Server performance: 765.74

                              Temporary out of Zabbix business

                              Comment

                              Working...