Ad Widget

Collapse

having issue with monitor VMware 5.1 on zabbix 5.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arul
    Junior Member
    • May 2020
    • 23

    #1

    having issue with monitor VMware 5.1 on zabbix 5.2

    Hi all,

    I am configuring zabbix 5.2 to monitor VMware 5.1. Created new host with agent interface with "Template VM VMware" template configured Macros :
    {$PASSWORD} => <my password>
    {$USERNAME} => <my username>
    {$URL} => https:/<MY IP>/sdk

    Not getting any latest data.

    With increase Debug level, getting the following on log:

    End substitute_simple_macros_impl() data:'https://ip-address/sdk'
    End of substitute_key_macros_impl():SUCCEED data:'vmware.eventlog[https://ip-address/sdk]'
    In substitute_simple_macros_impl() data:'{$USERNAME}'
    In DCget_user_macro() macro:'{$USERNAME}'
    End of DCget_user_macro()
    End substitute_simple_macros_impl() data:'zabbix'
    In substitute_simple_macros_impl() data:'{$PASSWORD}'
    In DCget_user_macro() macro:'{$PASSWORD}'
    End of DCget_user_macro()
    End substitute_simple_macros_impl() data:''
    In get_value() key:'vmware.eventlog[{$URL}]'
    In get_value_simple() key_orig:'vmware.eventlog[{$URL}]' addr:'ip-address'
    In check_vcenter_eventlog()
    In get_vmware_service() 'zabbix'@'https://ip-address/sdk'
    In zbx_vmware_get_service() 'zabbix'@'https://ip-address/sdk'
    End of zbx_vmware_get_service():FAIL
    End of get_vmware_service()nil)


    In log the actual IP of VMware is changed to "ip-address".
    Any idea where I am making mistake?
  • Arul
    Junior Member
    • May 2020
    • 23

    #2
    Got stuck, hoping to get some insights.

    Comment

    • Cameron94
      Junior Member
      • Apr 2021
      • 14

      #3
      Dear Arul,

      I had some problem with Vmware too, here is what I found during my struggle:
      1) if you have a Vcenter you just need to create a Host for your Vcenter then it will discover your Hypervisors and hosts. also it is really important to use de default macro names as they are used in discovery rules.
      this link is really helpfull it has lots of tips
      Setup VMware Monitoring (ESXi, vCenter, VMs, Datastores) in 10 minutes with the Zabbix monitoring tool! 100% free & Open-source!

      2) you can test your URL in Linux by this command to see it actually works curl https:/<MY IP>/sdk, also you should be able to login with your username and password

      Kind Regards
      Attached Files

      Comment

      • Arul
        Junior Member
        • May 2020
        • 23

        #4
        Thanks for your kind reply,

        For "curl https:/<MY IP>/sdk"
        I get :
        curl: (60) SSL certificate problem: unable to get local issuer certificate
        More details here: https://curl.haxx.se/docs/sslcerts.html

        Got new cacert.pem from: https://curl.haxx.se/ca/cacert.pem and pointed its path in /etc/php.ini for "curl.cainfo="
        Still continued with same error.

        When I tried "-k": "curl -k https:/<MY IP>/sdk" it returned with no output!!
        How to proceed

        Comment

        • Cameron94
          Junior Member
          • Apr 2021
          • 14

          #5
          You are most welcome,

          the output you're getting is actually a good sign, which means your URL is working as it should.
          you can also check for error in Monitoring>latest data> then choose your host and check both "show item without data" and "show detail" hopefully you will see an error for simple check items that have failed.
          or in Configuration> item check your host items, you will definitely see some error in one of these places.

          Regards

          Comment

          • Arul
            Junior Member
            • May 2020
            • 23

            #6
            It looks like a certificate issue, how can I resolve it.

            Comment


            • vinaykumar
              vinaykumar commented
              Editing a comment
              Hi Arul,
              Just saw the post, Thought to add here so that it may help others.
              Error “URL using bad/illegal format or missing URL” may also occur if you are using self-signed certificates on the vSphere.

              Solution is to download the root CA certificate from the vSphere
              Hit this URL in browser- (https://server_dns_or_ip/certs/download.zip).
              Press control S
              Save the certificate zip file
              Unzip and go to certs/win
              copy the certificate files into the /usr/share/ca-certificates using zabbix cli
              Check once if again it does not work
              reconfigure the CA with “dpkg-reconfigure ca-certificates“
          • Cameron94
            Junior Member
            • Apr 2021
            • 14

            #7
            in my case it didn't cause any problem. I don't have a solution for that.

            Comment

            • Arul
              Junior Member
              • May 2020
              • 23

              #8
              Your right I am getting "No vmware collector" processes started." Hopefully, it should be resolved by editing the zabbix-server.conf

              Comment

              • Cameron94
                Junior Member
                • Apr 2021
                • 14

                #9

                StartVMwareCollectors=? ----> < StartVMwareCollectors < (servicenum * 2)Where servicenum is the number of VMware for example if you have 3 VMware services, set it to 5
                VMwareFrequency=60
                VMwarePerfFrequency=60
                VMwareCacheSize=32M
                VMwareTimeout=120

                Comment

                • Arul
                  Junior Member
                  • May 2020
                  • 23

                  #10
                  Thanks for guiding.
                  So far Latest data populated with Event Log, Version and Full Name.
                  One of the 3 discovery rules " Discover VMware hypervisors" giving error "Cannot create group: invalid group name "" "

                  Any tips to overcome this issue..

                  Comment

                  • Cameron94
                    Junior Member
                    • Apr 2021
                    • 14

                    #11
                    you should give it some time to collect the data. I don't know that error

                    Comment

                    • Arul
                      Junior Member
                      • May 2020
                      • 23

                      #12
                      I appreciate the quick response, Thank you very much, I will update the result

                      Comment

                      • Arul
                        Junior Member
                        • May 2020
                        • 23

                        #13
                        The discovery rule "Discover VMware VMs" Populated all VMware host as separate host with discovery rule prefix. Thank you.

                        Is there any way I can manage the discovered VMs from zabbix dashboard (on / off / restart) ??

                        Comment

                        • Cameron94
                          Junior Member
                          • Apr 2021
                          • 14

                          #14
                          Great News! it might be possible by using SNMP, but I don't know exactly how to do it.

                          Comment

                          • mikerobert890
                            Junior Member
                            • Mar 2022
                            • 2

                            #15
                            It's great to be in such an amazing community, though in my case I didn't have any issues so far.

                            Comment

                            Working...