Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11630

vmware collector fail to authenticate when password contains XML entities

XMLWordPrintable

      Hello,

      I tried to add a second VMware vCenter host and it did not worked.
      The login/password is working with browser and powershell.

      Thanks to command zabbix_server -R log_level_increase="vmware collector", we can see that zabbix cant log in :

      Debug log Level 4 : vmware_service_authenticate():FAIL.

      Debug log Level 5 : <soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>
      Error returned by expat parser: not well-formed (invalid token)

      When investigate with NetCat tool, I intercept the SOAP request issued by Zabbix VMware collector, and it shows that XML entities are not managed. I paste only the essential, you will understand :

      <ns0:password>e><ample</ns0:password>

      As a temporary workaround, I changed VMware password and replace XML entities ( " ' & < > ) with any other special character ( # ~ [ ] _ ... )

      Sincerly yours

            Unassigned Unassigned
            jdemeyer Jerome Demeyer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: