Ad Widget

Collapse

VMware CPU Usage in percentage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luis Pereira
    Junior Member
    • Apr 2019
    • 6

    #1

    VMware CPU Usage in percentage

    Hello, there!

    I'm using VMware template to monitoring a VMware host.

    The CPU usage item returns data in Hz.

    Is there a way to monitoring CPU usage by percentage, instead Hz?

    Thank you in advanced!
  • only_one_me
    Junior Member
    • May 2019
    • 3

    #2
    You can divide it by CPU freq (vmware.hv.hw.cpu.freq) multiplied by threads (vmware.hv.hw.cpu.threads).

    Comment

    • only_one_me
      Junior Member
      • May 2019
      • 3

      #3
      Nah, just use vmware.hv.perfcounter[{$URL},{HOST.HOST},"cpu/usage[average]"] or vmware.hv.perfcounter[{$URL},{HOST.HOST},"cpu/utilization[average]"]

      Comment

      • Luis Pereira
        Junior Member
        • Apr 2019
        • 6

        #4
        Hello!

        Thank you.

        I have had this idea.

        It's working fine!

        Comment

        • Andrey123987456
          Member
          • Apr 2019
          • 44

          #5

          Good day everyone. Please tell me how to set one parameter in zabbix. There is a network node, you need to select the parameter when the node was last on the network and time was written. Who can tell which way is best done.

          Comment

          • ybuddhika
            Banned
            • Jul 2019
            • 2

            #6
            Hi,

            Can anyone provide a way to monitor VMware memory usage in percentage?

            Comment

            • yasith
              Junior Member
              • Aug 2019
              • 3

              #7
              Hello everyone,

              To get VMware CPU usage as a percentage I created a new key on my template (Template VM VMware Hypervisor).
              But after 1 min interval, I got an error with that "performance counter is not available"
              In the below, I attached the images related to how I create a new item and what is the error I got.

              Please give me feedback to solve this.

              Thank you in advance!
              Attached Files

              Comment

              • acatic1
                Member
                • Oct 2019
                • 38

                #8
                Originally posted by Luis Pereira
                Hello!

                Thank you.

                I have had this idea.

                It's working fine!
                Could you share a screenshot of how you configured that? Thank you!

                Comment

                • Jipso11
                  Junior Member
                  • Jan 2020
                  • 1

                  #9
                  Originally posted by ybuddhika
                  Hi,

                  Can anyone provide a way to monitor VMware memory usage in percentage?
                  last("vmware.hv.memory.used[{$URL},{$UUID}]")/last("vmware.hv.hw.memory[{$URL},{$UUID}]")*100

                  Comment

                  • zaheerabbas1988
                    Junior Member
                    • Feb 2020
                    • 22

                    #10
                    Originally posted by only_one_me
                    Nah, just use vmware.hv.perfcounter[{$URL},{HOST.HOST},"cpu/usage[average]"] or vmware.hv.perfcounter[{$URL},{HOST.HOST},"cpu/utilization[average]"]

                    Need help, getting the value greater than 100. I tried to change formula order but nothing seems to be working.

                    Comment

                    • vingertop
                      Junior Member
                      • Apr 2020
                      • 1

                      #11
                      Originally posted by zaheerabbas1988


                      Need help, getting the value greater than 100. I tried to change formula order but nothing seems to be working.
                      I put in a preprocessing step on that item :

                      Click image for larger version

Name:	preprocessor.PNG
Views:	6798
Size:	10.5 KB
ID:	398897

                      Afterwards the graphs and triggers work as expected :

                      Click image for larger version

Name:	cpu graph.PNG
Views:	6884
Size:	27.6 KB
ID:	398899
                      Attached Files

                      Comment

                      • zaheerabbas1988
                        Junior Member
                        • Feb 2020
                        • 22

                        #12
                        @vingertop thank you, it solved my problem

                        Comment

                        • ahmetselman
                          Junior Member
                          • Sep 2020
                          • 1

                          #13
                          Can somebody add screenshot of item (CPU Usage in percentage) because even i add the key vmware.hv.perfcounter[{$URL},{HOST.HOST},"cpu/usage[average]"] there is no data...

                          Comment


                          • Jason Cage
                            Jason Cage commented
                            Editing a comment
                            You could have a try key = vmware.hv.perfcounter[{$URL},{HOST.HOST},"cpu/utilization[average]"]

                            It works in my environment.
                        • ZaBeast
                          Member
                          • Sep 2019
                          • 42

                          #14
                          Create new item set “Name” to “CPU usage (%)”, “Key” to vmware.hv.perfcounter[{$URL},{HOST.HOST},”cpu/usage[average]”] , “Type of information” to “Numeric (float), and “Unit” to “%”.

                          Note that there is another option if you cannot get the data about CPU percentage using the key vmware.hv.perfcounter[{$URL},{HOST.HOST},”cpu/usage[average]”]. Create a new item, set type to "Calculated", "Key" can be anything, "Type of information" to "Numeric (float)", and "Unit" to "%". Then in "formula" section divide CPU Hz (vmware.hv.cpu.usage) by the CPU frequency (vmware.hv.hw.cpu.freq) and multiplied by the threads (vmware.hv.hw.cpu.threads)

                          You can c/p that formula and find more information in this tutorial:
                          https://bestmonitoringtools.com/vmwa...ring_in_Zabbix
                          Last edited by ZaBeast; 24-09-2020, 10:04.

                          Comment

                          • ismailsarp
                            Junior Member
                            • Feb 2023
                            • 3

                            #15
                            Originally posted by ybuddhika
                            Hi,

                            Can anyone provide a way to monitor VMware memory usage in percentage?

                            You can run it as follows.

                            VMware: Memory usage (%)
                            vmware.hv.perfcounter[{$VMWARE.URL},{$VMWARE.HV.UUID},"mem/usage[average]"]


                            VMware: CPU usage (%)
                            vmware.hv.perfcounter[{$VMWARE.URL},{$VMWARE.HV.UUID},"cpu/utilization[average]"]

                            I tried zabbix 6.2.6 version. Working fine.

                            Comment

                            Working...