Ad Widget

Collapse

Monitoring Hyper -V VM's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EvilEugene
    Junior Member
    • Mar 2012
    • 20

    #16
    actually, I'm not a windows guy, I'm Linux guy
    but lets find out whats wrong. try this on power shell :
    Code:
    gwmi -class "MSVM_ComputerSystem" -namespace "root\virtualization" -computername "."
    this will shows up all information of your vm.
    if not.. hmm.

    Comment

    • Boghdan
      Junior Member
      • Jun 2012
      • 18

      #17
      Code:
      Get-WmiObject : Invalid namespace
      At line:1 char:5
      + gwmi <<<<  -class "MSVM_ComputerSystem" -namespace "root\virtualization" -computername "."
          + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
          + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

      Comment

      • EvilEugene
        Junior Member
        • Mar 2012
        • 20

        #18
        ok, I ran this command on system which dosen't installed hyper-v,
        Code:
        PS C:\Users\eugenekwon> gwmi -class "MSVM_ComputerSystem" -namespace "root\virtualization" -computer "."
        Get-WmiObject : Invalid namespace
        위치 줄:1 문자:5
        + gwmi <<<<  -class "MSVM_ComputerSystem" -namespace "root\virtualization" -computer "."
            + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], ManagementException
            + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
        and you can see, same error message. so I think your should check your system has hyper-v installed.

        Comment

        • Boghdan
          Junior Member
          • Jun 2012
          • 18

          #19
          Ahah! So stupid!))))
          This is a freshly installed host planned for testing vm's, but hyper-v role wasn't really installed yet while i was sure it was)) heh. i'm so sorry for taking your time for such a silly thing and thanks a lot for your help)))

          P.S. Sorry for not responding you for some time, was away to my customer.

          Comment

          • EvilEugene
            Junior Member
            • Mar 2012
            • 20

            #20
            haha so Its solved!

            Comment

            • Boghdan
              Junior Member
              • Jun 2012
              • 18

              #21
              Yep! Now it says: "Timeout while executing a shell script"
              The Role was just installed and was not configured completely yet. So after some simple shamanic movements should be fine i think)
              Thanks a lot again)

              Comment

              • FrankGNL
                Junior Member
                • Jul 2012
                • 2

                #22
                doens't work for me

                I added the extra line to the agent config on mu hyperv server
                I imported the template in zabbix and linked it to my hyperv host, but it isn't working.
                If i copy that line and run it directly on my host, i get an proper output.
                I run that extra commando's you posted here, and everything is correctly

                I'm Running HyperV server 2008 R1 (Core version, the free one)
                I'm running Zabbix 2.0.0

                Regards
                Last edited by FrankGNL; 14-07-2012, 12:32.

                Comment

                Working...