Ad Widget

Collapse

Calculated item - how calculate avg?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jirijanata
    Junior Member
    • May 2014
    • 8

    #1

    Calculated item - how calculate avg?

    Hi,

    I'm now evaluating Zabbix. I configured monitoring for CPU load on Windows Server (see first attachment). I also configured graph for this monitoring (see second attachment). I'm now trying to make 5 minute values for daily (and in future 30 minute values for weekly graph). Can you help me with calculating this values? On third attachment is my calculated item, but it looks, that it doesn't work..

    Can you also help me, how to make graph, which will show more than one hour? Thank you very much


    Click image for larger version

Name:	01_zb.jpg
Views:	1
Size:	31.0 KB
ID:	316867

    Click image for larger version

Name:	02_zb.jpg
Views:	1
Size:	38.4 KB
ID:	316868

    Click image for larger version

Name:	03_zb.jpg
Views:	1
Size:	34.2 KB
ID:	316869
  • Navern
    Member
    • May 2013
    • 33

    #2
    Why you are not using perf_counter with greater interval(for example 300) in counter itself. Why bother with creating calculated item for this?

    Comment

    • jirijanata
      Junior Member
      • May 2014
      • 8

      #3
      Hi,

      thank you very much for your reply.

      I'm not able to add two templates with same key - perf_counter["\238(_Total)\6"]

      I want to have one graph with 30 seconds interval and another with 300. Because on graph, which will be from 300 avg, will be graph without peaks.

      Click image for larger version

Name:	04-zb.jpg
Views:	1
Size:	55.1 KB
ID:	312644

      Comment

      • Navern
        Member
        • May 2013
        • 33

        #4
        Can you pass second argument in item to key perf_counter as in example above?
        "perf_counter["\Processor(0)\Interrupts/sec", 10]"

        I suggest to you create additional item like this:
        perf_counter["\238(_Total)\6", 300] with polling interval 300 and make a graph from this. Is it viable for you?

        I think that calculcated item dont work because you need additional quotes and backslashes inside of your avg function for perf_counter key.

        Comment

        • jirijanata
          Junior Member
          • May 2014
          • 8

          #5
          Thank you very much for your answer - I just found same solution couple of minutes ago. It looks awesome

          I have last question - it's possible to create daily graph?
          I know, that I can go to Monitoring - Graphs and change Zoom, but I would like to see daily graph on one click. It's possible, or it's by design?

          Click image for larger version

Name:	05-zb.jpg
Views:	1
Size:	35.4 KB
ID:	312646

          Comment

          • Navern
            Member
            • May 2013
            • 33

            #6
            Ok, i think i should elaborate on this.

            I strongly recommend you to not use calculated item in this way. You have a better option to get thos stats.

            perf_counter key in item has two args: first is the actual counter, second is time in seconds where average for this counter is calculated on windows host side.

            In case you want to have average for 5 minutes:
            you create item with key perf_counter["<COUNTER HERE>", 300] and polling interval 300. Uniqueness of key in zabbix includes key's args. So you can add additional item for example average for one minute: perf_counter["<COUNTER HERE>", 60].

            I hope this would help you.

            P.S. To show more than one hour in graphs use the filter above the actual graph.

            Comment

            • jirijanata
              Junior Member
              • May 2014
              • 8

              #7
              Hi Navern,

              thank you very much for your replies. It helped me a lot.

              I'm currently using this argument with seconds and it looks fine

              I already find those filters - it's very flexible and fit my needs.

              One more time, thank you very much for your time and I wish you a nice summer

              Comment

              Working...