[ZBX-10066] Multiple host availability update issues Created: 2015 Nov 11 Updated: 2017 May 30 Resolved: 2016 Jan 13 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | None |
Fix Version/s: | 3.0.0alpha6 |
Type: | Incident report | Priority: | Major |
Reporter: | Andris Zeila | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | availability | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
There are multiple issues how host availability is handled:
|
Comments |
Comment by Andris Zeila [ 2015 Nov 19 ] |
Resolved in svn://svn.zabbix.com/branches/dev/ZBX-10066 |
Comment by Sandis Neilands (Inactive) [ 2016 Jan 05 ] |
TestingScenario #1Zabbix agent (passive checks)Pre-requisites
Scenario 1. Start server. Expected results: error message changes in step 5. Result: PASS. Zabbix proxyThe same test as above but with either active or passive proxy between agent and server. Result: PASS for both passive and active proxies. Scenario #2Pre-requisites
Scenario 1. Start Wireshark capture of the interface on which the server is listening. tcp.port==10051 && (data) 2. Start all daemons, check that host is available in front-end. sudo iptables -A INPUT -p tcp --dport 10051 -j DROP 4. Kill all agentd processes. sudo iptables -D INPUT 1 Expected results After step 5:
After step 6:
Result: PASS. Scenario #3Pre-requisites
Scenario 1. Start monitoring the server's log. Look for lines like the following one.
7289:20160106:134500.702 In get_data_from_proxy() request:'host availability'
Shortly afterwards a line like this should appear if there are no host availability changes. 7289:20160106:134500.702 obtained data from proxy "local proxy": [{"data":[]}] 2. Start all daemons, check that host is available in front-end. nc 127.0.0.1 10052 4. Disable the agent. Expected results in log after step 7 you should see that proxy continues sending empty availability data to server. Before the correction the proxy would send the host's availability again as if it had been changed again. Result: PASS. |
Comment by Sandis Neilands (Inactive) [ 2016 Jan 05 ] |
(1) Passive proxy sends empty hosts availability data. The server protests with the following log message.
18403:20160105:174828.996 invalid host availability data: Can't find pair with name "data"
The immediate cause of this is that we don't check for return value of get_host_availability_data() in send_host_availability(). It fails in due to DCget_hosts_availability() not finding any hosts for which availability has changed. wiper RESOLVED in r57439 sandis.neilands CLOSED. |
Comment by Sandis Neilands (Inactive) [ 2016 Jan 06 ] |
Successfully tested. |
Comment by Andris Zeila [ 2016 Jan 07 ] |
Released in:
|
Comment by Aleksandrs Saveljevs [ 2016 Jan 07 ] |
(2) The following compilation warning was introduced: proxyhosts.c:105:2: warning: implicit declaration of function 'zbx_set_availability_diff_ts' is invalid in C99 [-Wimplicit-function-declaration] zbx_set_availability_diff_ts(ts); ^ 1 warning generated. wiper Fixed directly in trunk by adding include file. asaveljevs CLOSED |
Comment by Andris Zeila [ 2016 Jan 13 ] |
(3) After host is set unavailable the items are pulled with the usual delay, ignoring the unreachable delay configuration parameter wiper RESOLVED in r57578 sandis.neilands CLOSED. |
Comment by Andris Zeila [ 2016 Jan 13 ] |
Released in:
|