-
Problem report
-
Resolution: Fixed
-
Trivial
-
4.2.0
-
Sprint 51 (Apr 2019)
-
0.25
Steps to reproduce:
- Setup Zabbix 4.2, no proxy, CentOS 7.6 with all updates
StartVMwareCollectors=5 VMwareFrequency=60 VMwarePerfFrequency=120 VMwareCacheSize=128M
- Add two separate VMware vSphere 6.7 instances, named for example VCENTER-DC1 (with up to 60VM) and VCENTER-DC2 (with up to 60VM), URL used differs.
- setup vmware.eventlog[\{$URL\},skip]
Result:
After a zabbix-server daemon or OS restart, vSphere switched/reversed at which one was currently working for getting the data, another not:
12348:20190411:104357.010 vmware_service_get_last_event_data() SOAP response: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <RetrievePropertiesExResponse xmlns="urn:vim25"><returnval><objects><obj type="EventManager">EventManager</obj><propSet><name>latestEvent</name><val xsi:type="UserLoginSessionEvent"><key>76939</key><chainId>76939</chainId><createdTime>2019-04-11T08:42:58.192698Z</createdTime><userName>DOMAIN\ZabbixUserAccount</userName><fullFormattedMessage>User DOMAIN\ZabbixUserAccount@<IP-removed> logged in as </fullFormattedMessage><changeTag></changeTag><ipAddress><IP-removed></ipAddress><locale>en</locale><sessionId>session-id-removed</sessionId></val></propSet></objects></returnval></RetrievePropertiesExResponse> </soapenv:Body> </soapenv:Envelope> 12348:20190411:104357.010 End of vmware_service_get_last_event_data():FAIL 12348:20190411:104357.010 Unable retrieve lastevent value: Cannot find last event key.
Before restart hostid=10271, not working:
hostid | itemid | lastlogsize | name |
---|---|---|---|
10271 | 68735 | 73165 | Event log |
11046 | 74354 | 31535 | Event log |
After restart hostid=11046 - not working, but 10271 does:
hostid | itemid | lastlogsize | name |
---|---|---|---|
10271 | 68735 | 80254 | Event log |
11046 | 74354 | 33877 | Event log |