Ad Widget

Collapse

CPU load trigger on Windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scout
    Junior Member
    • May 2012
    • 28

    #1

    CPU load trigger on Windows

    Hello,

    I'm monitoring Windows OS CPU load with perf_counter item (i.e. perf_counter[\Processor(_Total)\% Processor Time]). I would like to get trigger of this item if CPU load is more than 70% after 5 min.

    Could you please help me how I need to set trigger for this situation like that?

    Thank you.

    Regards,
    Alex
  • HullZabbix
    Senior Member
    • Feb 2011
    • 104

    #2
    Don't use the perf counters. Just use the built in item

    key: system.cpu.util[,,avg1]
    type of information: numeric float
    units: %

    trigger:
    {server1:system.cpu.util[,,avg1].avg(300)}>70

    Comment

    • scout
      Junior Member
      • May 2012
      • 28

      #3
      But then you are getting CPU load calculated in Linux way but not in the Windows way.
      I'd like to count CPU utilization like Windows task manager.

      Originally posted by HullZabbix
      Don't use the perf counters. Just use the built in item

      key: system.cpu.util[,,avg1]
      type of information: numeric float
      units: %

      trigger:
      {server1:system.cpu.util[,,avg1].avg(300)}>70

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Originally posted by scout
        Hello,

        I'm monitoring Windows OS CPU load with perf_counter item (i.e. perf_counter[\Processor(_Total)\% Processor Time]). I would like to get trigger of this item if CPU load is more than 70% after 5 min.

        Could you please help me how I need to set trigger for this situation like that?

        Thank you.

        Regards,
        Alex
        You are using two different terms for one thing. CPU Load is not CPU utilization. Your above perf counter is for CPU utilization. CPU Load is the number of processes waiting to be executed by the processor(s). 2 different animals.

        The trigger you want to use for that perf counter, applied at the Template level would be this:

        Code:
        {Template OS Windows:perf_counter[\Processor(_Total)\% Processor Time].avg(300)}>70

        Comment

        • scout
          Junior Member
          • May 2012
          • 28

          #5
          Thank you

          I already set up this trigger in my Windows template.

          Btw, have you got disk IO item for Windows OS?

          Is it perf_counter[\LogicalDisk(C\Disk Transfers/Sec] for disk C:?

          Thanks in advance

          Originally posted by tchjts1
          You are using two different terms for one thing. CPU Load is not CPU utilization. Your above perf counter is for CPU utilization. CPU Load is the number of processes waiting to be executed by the processor(s). 2 different animals.

          The trigger you want to use for that perf counter, applied at the Template level would be this:

          Code:
          {Template OS Windows:perf_counter[\Processor(_Total)\% Processor Time].avg(300)}>70

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            Originally posted by scout
            Thank you

            I already set up this trigger in my Windows template.

            Btw, have you got disk IO item for Windows OS?

            Is it perf_counter[\LogicalDisk(C\Disk Transfers/Sec] for disk C:?

            Thanks in advance
            I don't believe there is any single Windows item that will effectively give you disk IO stats on Windows. You will have to use several items and interpret them as an overall picture. Disk read/write, queue length, disk transfers, disk total time, disk idle time, file read/write - are just some that can be used to help give that picture.

            Comment

            • tchjts1
              Senior Member
              • May 2008
              • 1605

              #7
              These may also help:



              Comment

              • HullZabbix
                Senior Member
                • Feb 2011
                • 104

                #8
                Just as a note, I'm pretty certain the cpu.util does get the CPU utilisation in a windows way - as in % Processor Time.

                Comment

                • asynakie
                  Junior Member
                  • Oct 2012
                  • 15

                  #9
                  I created an Item and a Trigger as described above. Do I need to do anything else to get this working? I created a graph using this item and it says 'no data'. The item and the trigger have green check marks next to them. Here's what I have so far, am I missing a step? Thank you, i'm new to this.
                  Attached Files

                  Comment

                  • tchjts1
                    Senior Member
                    • May 2008
                    • 1605

                    #10
                    On the graph you are seeing "No data"?

                    Chances are you are looking at a time period before the item was implemented. make sure you have the slider bar above the graph all the way to the right so you are looking at current time.

                    To be sure you are getting data, go to Monitoring --> Latest data and check there.

                    Comment

                    • asynakie
                      Junior Member
                      • Oct 2012
                      • 15

                      #11
                      Originally posted by tchjts1
                      On the graph you are seeing "No data"?

                      Chances are you are looking at a time period before the item was implemented. make sure you have the slider bar above the graph all the way to the right so you are looking at current time.

                      To be sure you are getting data, go to Monitoring --> Latest data and check there.
                      Yup, on the graph it says no data. I also checked under monitoring --> latest data and while the item shows up, its grayed out and the last value is 0 and the change is just a '-'.

                      Comment

                      • asynakie
                        Junior Member
                        • Oct 2012
                        • 15

                        #12
                        Do I have to do anything else to get this to work? I created the item and the trigger. Do I have to do anything to each client or add something somewhere else in zabbix? I remember seeing somewhere that for perf-counters you needed to edit something in each computer's Zabbix agent configuration file?

                        Comment

                        Working...