Ad Widget

Collapse

VMware

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • miramira007
    Member
    • Sep 2015
    • 89

    #1

    VMware

    Hey out there,

    i have a question about monitoring wmware.
    i do this things:

    1. i created readonly account for the vcenter
    2. i updated my zabbix_server.conf like required
    3. i created a host
    4. i configured the makros
    5. i added the template virt wmware to the host

    my {$URL} does not ending with /sdk. but it is a webapplication in which you can sign in. I think it is the right one. Or what /sdk stands for? Maybe it isnt the same with the login page from vsphere-client?

    allthough my zabbix server is not finding some hypervisor, vms, etc.

    in my logfiles this error message is listed:
    :20151105:104432.451 item "VMware:vmware.hv.version[{$URL},{HOST.HOST}]" became not supported: Cannot get EventHistoryCollector session.


    I really dont know, what a EventHistoryCollector is,
    so please help me out.

    Mira
    Last edited by miramira007; 05-11-2015, 15:11.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi,

    Even though you have some web based login, Zabbix will not necessarily use it.

    Can you try to set your {$URL} macro to https://your_vmware_address/sdk ?

    Does it make any difference?

    Best Regards,
    Ingus

    Comment

    • miramira007
      Member
      • Sep 2015
      • 89

      #3
      nada,

      nothing happens if i change the url makro to https://ip/sdk.
      can it be possible that the vmware web app sdk is not installed?

      greats from germany,
      mira

      Comment

      • mvazquez
        Junior Member
        • Mar 2015
        • 7

        #4
        Currently I'm monitoring some ESX Servers. I have created one host per ESX server instead of use the VCenter.

        The URL must be esxhostname.domain.ltd/sdk

        Comment

        • miramira007
          Member
          • Sep 2015
          • 89

          #5
          Hey mvazquez,

          you are right, im sorry for asking deeper to vmware, because i never worked with it. i havent got access to the vsphere, just a readonly acc is created to monitor via zabbix. so, in my case, you should know i dont know anything about vsphere, just the
          theoretical part maybe, read alot about it, trying to understand.

          so my question to you is about vmware:::
          can i install the vsphere management sdk after installed vcenter?
          in my case vCenter is activated and running.

          How much work it is to install vnware sdk?
          And do you thing installing sdk on a existing vmware would be worthing after including the vnware sdk into zabbix?

          Or should i monitor my vms manually?

          greats from germany,
          mira.

          Comment

          • vcsa
            Junior Member
            • Sep 2015
            • 10

            #6
            can i install the vsphere management sdk after installed vcenter?
            No, you don't need to install the SDK to monitor vSphere. the /sdk part of the URL is the root of the VMWare API, which is what Simple Checks in Zabbix talks to. Any time you use HTTP(S) calls to VMware it will go to something that ends in /sdk.

            I had some trouble getting VMWare monitoring to work properly as well, so here's what I did:
            1. Download the source for Zabbix
            2. Unpack the sources and go into the directory
            3. use the ./configure command and ensure the --with-libcurl and --with-libxml2 are added
            4. Do a fresh make install to compile zabbix


            libcurl is used to talk to the vSphere API over HTTP(S) and libxml2 is used to translate the response (vSphere sends back all responses in XML)

            So I imagine that your error is due to some error in translating/communicating between Zabbix and vCenter.

            Comment

            • miramira007
              Member
              • Sep 2015
              • 89

              #7
              Thank for your answear.

              But if it is a communication problem, whould i get this error?

              In Zabbix I have got this Exception:::
              "VMware:vmware.hv.version[{$URL},{HOST.HOST}]" became not supported: Cannot get EventHistoryCollector session.

              I looked up for the EventHistoryCollector --> it is a method in VMware SDK.

              I think our vcenter is not supporting this method. How can i activate it, without installing sdk?

              greets,
              mira
              Last edited by miramira007; 19-11-2015, 12:31.

              Comment

              • vcsa
                Junior Member
                • Sep 2015
                • 10

                #8
                What version is your vCenter server?

                Also have you configured the {$USERNAME} and {$PASSWORD} macros correctly?
                Last edited by vcsa; 19-11-2015, 15:36.

                Comment

                • miramira007
                  Member
                  • Sep 2015
                  • 89

                  #9
                  Originally posted by vcsa
                  What version is your vCenter server?
                  vCenter Server 5.1

                  Originally posted by vcsa
                  Also have you configured the {$USERNAME} and {$PASSWORD} macros correctly?
                  Of course it was the simple one to control.

                  If i tipp in my browser: https://ip/sdk/ my browser is telling me the 404 error.

                  Are you sure, that is no need to install vsphere web service sdk?

                  Im working on this problem since 7 days.

                  Comment

                  • vcsa
                    Junior Member
                    • Sep 2015
                    • 10

                    #10
                    That URL is not supposed to produce anything for a web browser. It's a "service end point" for the API.
                    1. Try using FQDN instead of IP
                    2. Make sure you configured the macros in the host, not the template
                    3. Did you restart the zabbix service after configuring the vmware collectors?

                    Comment

                    • miramira007
                      Member
                      • Sep 2015
                      • 89

                      #11
                      Originally posted by vcsa
                      Try using FQDN instead of IP
                      Tried, nothing changed
                      Make sure you configured the macros in the host, not the template
                      The macros are configured in the host

                      Did you restart the zabbix service after configuring the vmware collectors?[/LIST]
                      Yes i restart my zabbix server after using the vm template. not for that issue but i did.

                      Maybe you are right and the communication is that problem.
                      Can you tell me, how can i check if i installed zabbix server with the required components? I have installed zabbix via packages, should i reinstall zabbix? Or can i add the components after all, too?

                      king regards,
                      mira.

                      Comment

                      • vcsa
                        Junior Member
                        • Sep 2015
                        • 10

                        #12
                        I'm too new to Zabbix to know where the build logs are, sorry. The good news is that it's pretty easy to recompile Zabbix in place without harming your database!
                        1. Back up your .conf file
                        2. Do this: https://www.zabbix.com/documentation...lation/install
                        3. (Download the source in tar.gz format)
                        4. (Unpack it)
                        5. (go into the directory and use the ./configure command shown in the above link)
                        6. At the end of the output it should say something like "Now you just need to run Make Install", do that
                        7. Copy your conf file back and restart Zabbix

                        Comment

                        • miramira007
                          Member
                          • Sep 2015
                          • 89

                          #13
                          I check shared library dependencies of a zabbix


                          this came out:

                          #ldd zabbix_server
                          libxml2.so.2 => /lib64/libxml2.so.2 (0x00007ffbc936f000)
                          libcurl.so.4 => /lib64/libcurl.so.4 (0x00007ffbc7ffd000)
                          So i have installed the required components libcurl and libxml2 to monitor virtual machines.

                          Do someone have any idea?

                          thx alot for trying to help me,
                          mira
                          Last edited by miramira007; 25-11-2015, 10:59.

                          Comment

                          • miramira007
                            Member
                            • Sep 2015
                            • 89

                            #14
                            You are right,

                            You don't need to install VSphere SDK, to monitor VCenter. You can check out your required {$URL} here (in VCenter the name of the URL is VimApiURL):



                            For all, who wants to monitor VCenter Server without having VSphere experience (like me)

                            I want to thank all who tried to help me.
                            Mira

                            Comment

                            • Dwayne
                              Junior Member
                              • Feb 2025
                              • 9

                              #15
                              what no one mentioned is this is a SOAP not html based SDK. so the 404 response is expected. https://knowledge.broadcom.com/exter...en-access.html

                              add /vimService.wsdl the the url and you will get a xml response.

                              it wont fix the issue but you can see the SDK is up

                              Comment

                              Working...