Ad Widget

Collapse

VMware Calculated Items

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

    #1

    VMware Calculated Items

    Hello,

    maybe it will help someone.

    At the moment i am testing zabbix with vmware.
    There are some missing items. So i configured some new calculated items.

    CPU Total Ghz of VMware Host
    Key: vmware.hv.hw.cpu.total[{$URL},{HOST.HOST}]
    Formula: last("vmware.hv.hw.cpu.num[{$URL},{HOST.HOST}]")*last("vmware.hv.hw.cpu.freq[{$URL},{HOST.HOST}]")
    Type of information: Numeric (unsigned)
    Units: Hz

    CPU Usage percent of Total
    Key: vmware.hv.hw.cpu.total.percent[{$URL},{HOST.HOST}]
    100*last("vmware.hv.cpu.usage[{$URL},{HOST.HOST}]")/last("vmware.hv.hw.cpu.total[{$URL},{HOST.HOST}]")
    Type of information: Numeric (float)
    Units: %
  • nakunakujung
    Junior Member
    • May 2015
    • 2

    #2
    how to

    how can i show value that receive from key on map ?

    Comment

    • FabrizioA
      Member
      • Sep 2015
      • 33

      #3
      Hi, can I use those formulas on VMWare_Guest_Template??

      Comment

      • huangyingja
        Junior Member
        • Apr 2015
        • 27

        #4
        Hi
        @nakunakujung :
        you can use as follows to show value on map,
        Also cna change last(0) to avg(5)
        ETH Out : {{HOST.HOST}:ifOutOctets["Link Aggregation Management Network on switch: vSwitch0, load balancing algorithm: source port id hash"].last(0)}
        ETH In : {{HOST.HOST}:ifInOctets["Link Aggregation Management Network on switch: vSwitch0, load balancing algorithm: source port id hash"].last(0)}
        Ballooned MEM : {{HOST.HOST}:vmware.hv.memory.size.ballooned[{$URL},{$UUID}].last(0)}
        CPU usage : {{HOST.HOST}:vmware.hv.cpu.usage[{$URL},{$UUID}].last(0)}

        @FabrizioA :
        VMWare_Guest key value is like
        ex: vmware.vm.cpu.usage[{$URL},{$UUID}]
        U can find it at


        FYI ~

        Comment

        • FabrizioA
          Member
          • Sep 2015
          • 33

          #5
          Thanks for your reply huangyingja.

          Comment

          • Markku
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Sep 2018
            • 1781

            #6
            Hi, just a quick guess, can you recheck the quotes in your formula? I got similar errors when my quotes were not correctly set. So be sure to quote the item keys that are in the last() parameters, just like shown above.

            Markku

            Comment

            • acatic1
              Member
              • Oct 2019
              • 38

              #7
              Still valid. Thank you.

              Originally posted by Maverick1980
              Hello,

              maybe it will help someone.

              At the moment i am testing zabbix with vmware.
              There are some missing items. So i configured some new calculated items.

              CPU Total Ghz of VMware Host
              Key: vmware.hv.hw.cpu.total[{$URL},{HOST.HOST}]
              Formula: last("vmware.hv.hw.cpu.num[{$URL},{HOST.HOST}]")*last("vmware.hv.hw.cpu.freq[{$URL},{HOST.HOST}]")
              Type of information: Numeric (unsigned)
              Units: Hz

              CPU Usage percent of Total
              Key: vmware.hv.hw.cpu.total.percent[{$URL},{HOST.HOST}]
              100*last("vmware.hv.cpu.usage[{$URL},{HOST.HOST}]")/last("vmware.hv.hw.cpu.total[{$URL},{HOST.HOST}]")
              Type of information: Numeric (float)
              Units: %

              Comment

              • ZaBeast
                Member
                • Sep 2019
                • 42

                #8
                You can accomplish the same with one item:

                Code:
                ( ( last("vmware.hv.cpu.usage[{$URL},{HOST.HOST}]", "0") / last("vmware.hv.hw.cpu.freq[{$URL},{HOST.HOST}]", "0") )
                * last("vmware.hv.hw.cpu.threads[{$URL},{HOST.HOST}]", "0") ) * 0.1
                Check out this guide to learn how to create custom VMware items (including CPU usage in percentage): https://bestmonitoringtools.com/vmwa...er-vm-vsphere/.

                Comment

                • Vena
                  Junior Member
                  • Oct 2020
                  • 1

                  #9
                  I'm starting to check Zabbix and what it can do. I would like to monitor some 500 network devices (est. 400 NVPS) through SNMP.
                  I am planning to deploy Zabbix Proxies alongside the Zabbix server and I am wondering how I can make it highly available? MyBPCreditcard
                  Last edited by Vena; 27-10-2020, 08:26.

                  Comment

                  Working...