Ad Widget

Collapse

problem in Template Virt VMware Guest

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paranoik
    Junior Member
    • Oct 2016
    • 7

    #1

    problem in Template Virt VMware Guest

    Hello.
    In Template Virt VMware Guest there is a Item called Total CPU frequency. Key: calc.vmware.vm.cpu.frequency.total. Formula: last("vmware.vm.hv.name[{$URL},{HOST.HOST}]":"vmware.hv.hw.cpu.freq[{$URL},\"vmware.vm.hv.name[{$URL},{HOST.HOST}]\"]") * last("vmware.vm.cpu.num[{$URL},{HOST.HOST}]"). According to the Latest Data Item in a message appears - "Invalid first parameter in function [last("vmware.vm.hv.name[{$URL},{HOST.HOST}]":"vmware.hv.hw.cpu.freq[{$URL},\"vmware.vm.hv.name[{$URL},{HOST.HOST}]\"]")].". What could be the problem?
  • paranoik
    Junior Member
    • Oct 2016
    • 7

    #2
    Please, help me in this problem. any ideas?

    Comment

    • nick0909
      Member
      • Apr 2013
      • 73

      #3
      Did you assign this template directly to a VM? If so, that is not the way to do it. It is supposed to be assigned through discovery templates in Template Virt VMware. Point Template Virt VMware to your vcenter and the rest should be automatic. You do have to provide the $URL, $USERNAME and $PASSWORD in the macro section for the vcenter host.

      It is covered in the documentation:

      Comment

      • paranoik
        Junior Member
        • Oct 2016
        • 7

        #4
        Hi. Could you tell me, why item "Template Virt VMware Guest: Total CPU frequency" returns error - "Macro '{$URL}' value is not numeric"? Formula of this item: "last("vmware.vm.hv.name[{$URL},{HOST.HOST}]":"vmware.hv.hw.cpu.freq[{$URL},\"vmware.vm.hv.name[{$URL},{HOST.HOST}]\"]") * last("vmware.vm.cpu.num[{$URL},{HOST.HOST}]")"

        Comment

        • mobarrio
          Junior Member
          • Aug 2017
          • 18

          #5
          Hi @paranoik Do you solve it that issue? I have the same problem, can you help me pls.

          Thxs.

          Comment

          Working...