Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/zabbix_server/vmware/vmware.c')
-rw-r--r--src/zabbix_server/vmware/vmware.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zabbix_server/vmware/vmware.c b/src/zabbix_server/vmware/vmware.c
index 228065a9b4d..e0f3471d6b1 100644
--- a/src/zabbix_server/vmware/vmware.c
+++ b/src/zabbix_server/vmware/vmware.c
@@ -2244,6 +2244,12 @@ static int vmware_service_get_contents(CURL *easyhandle, char **version, char **
*fullname = zbx_xml_read_doc_value(doc, ZBX_XPATH_VMWARE_ABOUT("fullName"));
zbx_xml_free_doc(doc);
+ if (NULL == *version)
+ {
+ *error = zbx_strdup(*error, "VMware Virtual Center is not ready.");
+ return FAIL;
+ }
+
return SUCCEED;
# undef ZBX_POST_VMWARE_CONTENTS