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

Zabbix server always crash on start

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 3.2.2rc1
    • Proxy (P), Server (S)
    • None

      It crashes in check_vcenter_hv_status function, debug log:

      7568:20161115:205534.517 In get_value_simple() key_orig:'vmware.hv.status[{$VSPHERE_URL},{$VSPHERE_UUID}]' addr:'172.16.11.20'
      7568:20161115:205534.517 In check_vcenter_hv_status()
      7568:20161115:205534.517 In get_vcenter_hvprop() propid:15
      7568:20161115:205534.517 In get_vmware_service() 'zabbix'@'https://v-center/sdk'
      7568:20161115:205534.517 In zbx_vmware_get_service() zabbix@https://v-center/sdk
      7568:20161115:205534.518 End of zbx_vmware_get_service():FAIL
      7568:20161115:205534.518 End of get_vmware_service():(nil)
      7568:20161115:205534.518 End of get_vcenter_hvprop():SYSINFO_SUCCEED
      7568:20161115:205534.518 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...

      I guess it's because
      in get_vcenter_hvprop

      int ret = SYSINFO_RET_FAIL;

      then it calls

      if (NULL == (service = get_vmware_service(url, username, password, result, &ret)))
      goto unlock;

      Note: &ret passed and get_vmware_service returns NULL and set ret to SYSINFO_RET_OK if service was added, but not yet processed by collector

      and then in the end of get_vcenter_hvprop:

      unlock:
      zbx_vmware_unlock();
      out:
      zabbix_log(LOG_LEVEL_DEBUG, "End of %s():%s", __function_name, sysinfo_ret_string(ret));

      return ret;

      Ie no service, no data, but it SYSINFO_RET_OK returned

            Unassigned Unassigned
            olfway Pavel Volkovitskiy
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: