[ZBX-10694] Not update VMware hypervisor overall status Created: 2016 Apr 21 Updated: 2017 May 30 Resolved: 2016 Oct 05 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 3.0.1 |
Fix Version/s: | 2.2.16rc1, 3.0.6rc1, 3.2.2rc1, 3.4.0alpha1 |
Type: | Incident report | Priority: | Trivial |
Reporter: | Jefferson Gonzaga | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 2 |
Labels: | vmware | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | Screenshot_20160803_162859.png vm-zbx.png zabbix-err.png zabbix-err01.png zabbix-problem04.png | ||||
Issue Links: |
|
Description |
When there is a alarm on vmware Hypervisor, this alarm is not changed on template "Template Virt VMware Hypervisor" (item overall status) on zabbix monitoring. |
Comments |
Comment by Andris Zeila [ 2016 Jul 18 ] | |||||||||
Would it be possible to provide larger screenshots from VMware client showing the correct status? We are talking with WMware support regarding the right place to query for hypervisor status and they are asking us for screenshots showing the host status in their client. | |||||||||
Comment by Jefferson Gonzaga [ 2016 Jul 18 ] | |||||||||
Larger screenshots from VMware client showing the correct status. | |||||||||
Comment by Jefferson Gonzaga [ 2016 Jul 18 ] | |||||||||
Larger screenshots from zabbix showing the wrong status. | |||||||||
Comment by Andris Zeila [ 2016 Jul 19 ] | |||||||||
Thanks, we will forward this screenshot to VMware support. I hope you won't mind if they will be asking for more details. | |||||||||
Comment by Jefferson Gonzaga [ 2016 Jul 19 ] | |||||||||
Thanks so much for attention and agility. I am available for any clarification. | |||||||||
Comment by Andris Zeila [ 2016 Aug 02 ] | |||||||||
Sorry for the delay, one question:
| |||||||||
Comment by Branden [ 2016 Aug 03 ] | |||||||||
If this helps, using the Managed Object Browser https://<virtual center server>/mob/?moid=host-XXXX, I find the following information:
| |||||||||
Comment by Jefferson Gonzaga [ 2016 Aug 03 ] | |||||||||
vCenter host status is yellow, but in zabbix is green. See new images. | |||||||||
Comment by Andris Zeila [ 2016 Aug 04 ] | |||||||||
Thanks | |||||||||
Comment by Branden [ 2016 Aug 11 ] | |||||||||
Again, I see in Zabbix (3.0.3), the status of a host as "gray" while vCenter and MOB show "red". So, I checked the checks_simple_vmware.c and vmware.h sources to find what is happening. This monitor is only checking the hardware status and not any of the defined alarms (which includes hardware). Using the Managed Object Browser https://<virtual center server>/mob/?moid=host-XXXX, I find the following information:
However, I know that for customers not using vCenter the overallStatus may not include the alarm values and TriggeredAlarms values are not available while the simple hardware health information may be available. Perhaps, a vCenter template with a TriggeredAlarms discovery option or a simple item for overallStatus could be made available? Thanks! | |||||||||
Comment by Andris Zeila [ 2016 Aug 12 ] | |||||||||
Yes, we did initially monitory HostSystem.overallStatus. However we had reports that it does not represent the real status of hypervisor. Based on provided data we switched it to Rollup Health State, as it was the only place showing the correct status (green/unknown/red/yellow). But based on reports and initial talks with VMware support it was wrong choice. Now I'm thinking the best idea would be to revert back to HostSystem.overallStatus monitoring and add a new 'VMware Rollup Health State' item. Thanks for the idea! | |||||||||
Comment by Andris Zeila [ 2016 Aug 15 ] | |||||||||
Fixed in development branch wiper Wrong branch, fix moved to the correct brach svn://svn.zabbix.com/branches/dev/ZBX-10694 | |||||||||
Comment by Jefferson Gonzaga [ 2016 Aug 15 ] | |||||||||
Thanks! | |||||||||
Comment by dimir [ 2016 Sep 30 ] | |||||||||
(1) [S] Minor thing but seems like there are lots of unneeded result checks like NULL != GET_STR_RESULT(result). In the following example if get_vcenter_stat() returns SYSINFO_RET_OK the result will unconditionally contain string: ret = get_vcenter_stat(request, username, password, ZBX_OPT_XPATH, ZBX_XPATH_HV_SENSOR_STATUS("VMware Rollup Health State"), result); if (SYSINFO_RET_OK == ret && NULL != GET_STR_RESULT(result)) wiper After fixing int check_vcenter_hv_status(AGENT_REQUEST *request, const char *username, const char *password, AGENT_RESULT *result) { const char *__function_name = "check_vcenter_hv_status"; int ret; zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __function_name); ret = get_vcenter_hvprop(request, username, password, ZBX_VMWARE_HVPROP_STATUS, result); if (SYSINFO_RET_OK == ret && NULL != GET_STR_RESULT(result)) { if (0 == strcmp(result->str, "gray") || 0 == strcmp(result->str, "unknown")) SET_UI64_RESULT(result, 0); else if (0 == strcmp(result->str, "green")) SET_UI64_RESULT(result, 1); else if (0 == strcmp(result->str, "yellow")) SET_UI64_RESULT(result, 2); else if (0 == strcmp(result->str, "red")) SET_UI64_RESULT(result, 3); else ret = SYSINFO_RET_FAIL; UNSET_STR_RESULT(result); } zabbix_log(LOG_LEVEL_DEBUG, "End of %s():%s", __function_name, sysinfo_ret_string(ret)); return ret; } I don't think it's worth fixing in 2.2. We might open a new ZBX or simply add it to another vmware related issues. <dimir> I agree. CLOSED | |||||||||
Comment by dimir [ 2016 Sep 30 ] | |||||||||
(2) [D] Just to not forget, new key hypervisor state rollup should be added to
Probably worth also documenting different behavior of vmware.hv.status in different versions. wiper Documantation updated:
RESOLVED <dimir> Do we really need comments for key description in 3.4l? wiper I believe yes. Even more - it might be better to mention older revisions too, as it's done for few other keys. <dimir> CLOSED | |||||||||
Comment by Andris Zeila [ 2016 Oct 04 ] | |||||||||
Released in:
|