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

hosts monitored by proxy do not switch triggers to Unknown if host becomes unavailable

XMLWordPrintable

      If host (agent) is monitored by proxy - only host status will be updated but its triggers will stay Normal, which is not consistent when you monitor agent directly by server.

      Server debug log for host monitored by proxy:

       29734:20160509:121040.332 __zbx_zbx_setproctitle() title:'escalator #1 [processed 0 escalations in 0.000639 sec, idle 3 sec]'
       29719:20160509:121040.645 __zbx_zbx_setproctitle() title:'trapper #5 [processing data]'
       29719:20160509:121040.645 trapper got '{"request":"host availability","host":"first_test_proxy","data":[{"hostid":10106,"available":2,"error":"Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused","snmp_available":0,"snmp_error":"","ipmi_available":0,"ipmi_error":"","jmx_available":0,"jmx_error":""}]}'
       29719:20160509:121040.645 In recv_host_availability()
       29719:20160509:121040.645 In process_host_availability()
       29719:20160509:121040.645 query [txnlev:1] [begin;]
       29719:20160509:121040.645 query [txnlev:1] [update hosts set available=2,error='Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused' where hostid=10106;]
       29719:20160509:121040.645 query [txnlev:1] [commit;]
       29719:20160509:121040.645 End of process_host_availability()
       29719:20160509:121040.645 In zbx_send_response()
       29719:20160509:121040.646 zbx_send_response() '{"response":"success"}'
       29719:20160509:121040.646 End of zbx_send_response():SUCCEED
       29719:20160509:121040.646 End of recv_host_availability()
       29719:20160509:121040.646 __zbx_zbx_setproctitle() title:'trapper #5 [processed data in 0.000867 sec, waiting for connection]'
      

      server log if host monitored by server:

       23107:20160506:135845.206 __zbx_zbx_setproctitle() title:'unreachable poller #1 [got 0 values in 0.000055 sec, getting values]'
       23107:20160506:135845.206 In get_values()
       23107:20160506:135845.206 In DCconfig_get_poller_items() poller_type:1
       23107:20160506:135845.206 End of DCconfig_get_poller_items():1
       23107:20160506:135845.206 In substitute_key_macros() data:'vfs.fs.size[/,pfree]'
       23107:20160506:135845.206 End of substitute_key_macros():SUCCEED data:'vfs.fs.size[/,pfree]'
       23107:20160506:135845.206 In substitute_simple_macros() data:'10050'
       23107:20160506:135845.206 In get_value() key:'vfs.fs.size[/,pfree]'
       23107:20160506:135845.206 In get_value_agent() host:'test-host2' addr:'127.0.0.1' key:'vfs.fs.size[/,pfree]' conn:'unencrypted'
       23107:20160506:135845.206 End of get_value_agent():NETWORK_ERROR
       23107:20160506:135845.206 Item [test-host2:vfs.fs.size[/,pfree]] error: Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused
       23107:20160506:135845.206 End of get_value():NETWORK_ERROR
       23107:20160506:135845.206 In deactivate_host() hostid:10113 itemid:23843 type:0
       23107:20160506:135845.206 query [txnlev:1] [begin;]
       23107:20160506:135845.206 query [txnlev:1] [update hosts set available=2,error='Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused',disable_until=1462532385 where hostid=10113]
       23107:20160506:135845.207 query [txnlev:1] [commit;]
       23107:20160506:135845.207 temporarily disabling Zabbix agent checks on host "test-host2": host unavailable
       23107:20160506:135845.207 In update_triggers_status_to_unknown() hostid:10113
       23107:20160506:135845.207 query [txnlev:0] [select distinct t.triggerid,t.description,t.expression,t.priority,t.type,t.value,t.state,t.error,t.lastchange from items i,functions f,triggers t,hosts h where i.itemid=f.itemid and f.triggerid=t.triggerid and i.hostid=h.hostid and i.status=0 and i.state=0 and i.type in (0) and f.function not in ('nodata','date','dayofmonth','dayofweek','time','now') and t.status=0 and h.hostid=10113 and h.status=0 and not exists (select 1 from functions f2,items i2,hosts h2 where f2.triggerid=f.triggerid and f2.itemid=i2.itemid and i2.hostid=h2.hostid and (f2.function in ('nodata','date','dayofmonth','dayofweek','time','now') or (i2.type not in (0) and (i2.type not in (0,1,4,6,12,16) or (i2.type in (0) and h2.available=1) or (i2.type in (1,4,6) and h2.snmp_available=1) or (i2.type in (12) and h2.ipmi_available=1) or (i2.type in (16) and h2.jmx_available=1)))) and i2.status=0 and i2.state=0 and h2.status=0) order by t.triggerid]
       23107:20160506:135845.207 In process_trigger() triggerid:13646 value:0(0) new_value:2
       23107:20160506:135845.207 End of process_trigger():SUCCEED
       23107:20160506:135845.207 query [txnlev:1] [begin;]
       23107:20160506:135845.207 query [txnlev:1] [update triggers set state=1,error='Agent is unavailable.' where triggerid=13646]
       23107:20160506:135845.207 query [txnlev:1] [commit;]
       23107:20160506:135845.208 In process_trigger() triggerid:13647 value:0(0) new_value:2
       23107:20160506:135845.208 End of process_trigger():SUCCEED
       23107:20160506:135845.208 query [txnlev:1] [begin;]
       23107:20160506:135845.208 query [txnlev:1] [update triggers set state=1,error='Agent is unavailable.' where triggerid=13647]
       23107:20160506:135845.208 query [txnlev:1] [commit;]
       23107:20160506:135845.208 In process_trigger() triggerid:13648 value:0(0) new_value:2
       23107:20160506:135845.208 End of process_trigger():SUCCEED
       23107:20160506:135845.208 query [txnlev:1] [begin;]
       23107:20160506:135845.208 query [txnlev:1] [update triggers set state=1,error='Agent is unavailable.' where triggerid=13648]
       23107:20160506:135845.208 query [txnlev:1] [commit;]
       23107:20160506:135845.208 query [txnlev:1] [begin;]
       23107:20160506:135845.208 In process_events() events_num:3
       23107:20160506:135845.208 In DCget_nextid() table:'events' num:3
       23107:20160506:135845.208 query [txnlev:1] [select max(eventid) from events where eventid between 0 and 9223372036854775807]
       23107:20160506:135845.208 End of DCget_nextid() table:'events' [71:73]
       23107:20160506:135845.208 query [txnlev:1] [insert into events (eventid,source,object,objectid,clock,ns,value) values (71,3,0,13646,1462532325,206661718,1),(72,3,0,13647,1462532325,206661718,1),(73,3,0,13648,1462532325,206661718,1);]
       23107:20160506:135845.208 In process_actions() events_num:3
       23107:20160506:135845.208 In zbx_dc_get_actions_eval()
       23107:20160506:135845.208 End of zbx_dc_get_actions_eval() actions:1
       23107:20160506:135845.208 In check_action_conditions() actionid:8
       23107:20160506:135845.208 In check_action_condition() actionid:8 conditionid:12 cond.value:'4'
       23107:20160506:135845.208 In check_internal_condition()
       23107:20160506:135845.208 End of check_internal_condition():SUCCEED
       23107:20160506:135845.208 End of check_action_condition():SUCCEED
       23107:20160506:135845.208 End of check_action_conditions():SUCCEED
       23107:20160506:135845.208 In DCget_nextid() table:'escalations' num:1
       23107:20160506:135845.208 query [txnlev:1] [select max(escalationid) from escalations where escalationid between 0 and 9223372036854775807]
       23107:20160506:135845.208 End of DCget_nextid() table:'escalations' [1:1]
       23107:20160506:135845.208 In check_action_conditions() actionid:8
       23107:20160506:135845.208 In check_action_condition() actionid:8 conditionid:12 cond.value:'4'
       23107:20160506:135845.208 In check_internal_condition()
       23107:20160506:135845.208 End of check_internal_condition():SUCCEED
       23107:20160506:135845.208 End of check_action_condition():SUCCEED
       23107:20160506:135845.208 End of check_action_conditions():SUCCEED
       23107:20160506:135845.208 In DCget_nextid() table:'escalations' num:1
       23107:20160506:135845.208 End of DCget_nextid() table:'escalations' [2:2]
       23107:20160506:135845.208 In check_action_conditions() actionid:8
       23107:20160506:135845.208 In check_action_condition() actionid:8 conditionid:12 cond.value:'4'
       23107:20160506:135845.208 In check_internal_condition()
       23107:20160506:135845.208 End of check_internal_condition():SUCCEED
       23107:20160506:135845.208 End of check_action_condition():SUCCEED
       23107:20160506:135845.208 End of check_action_conditions():SUCCEED
       23107:20160506:135845.208 In DCget_nextid() table:'escalations' num:1
       23107:20160506:135845.208 End of DCget_nextid() table:'escalations' [3:3]
       23107:20160506:135845.208 query [txnlev:1] [insert into escalations (escalationid,actionid,status,triggerid,itemid,eventid,r_eventid) values (1,8,0,13646,null,71,null),(2,8,0,13647,null,72,null),(3,8,0,13648,null,73,null);]
       23107:20160506:135845.208 End of process_actions()
       23107:20160506:135845.208 In DBupdate_itservices()
       23107:20160506:135845.208 End of DBupdate_itservices():SUCCEED
       23107:20160506:135845.208 End of process_events()
       23107:20160506:135845.208 query [txnlev:1] [commit;]
       23107:20160506:135845.208 End of update_triggers_status_to_unknown()
       23107:20160506:135845.208 deactivate_host() errors_from:1462532280 available:2
       23107:20160506:135845.209 End of deactivate_host()
       23107:20160506:135845.209 End of get_values():1
       23107:20160506:135845.209 __zbx_zbx_setproctitle() title:'unreachable poller #1 [got 1 values in 0.002552 sec, getting values]'
       23107:20160506:135845.209 In get_values()
       23107:20160506:135845.209 In DCconfig_get_poller_items() poller_type:1
       23107:20160506:135845.209 End of DCconfig_get_poller_items():0
       23107:20160506:135845.209 In DCconfig_get_poller_nextcheck() poller_type:1
       23107:20160506:135845.209 End of DCconfig_get_poller_nextcheck():1462532385
       23107:20160506:135845.209 End of get_values():0
       23107:20160506:135845.209 __zbx_zbx_setproctitle() title:'unreachable poller #1 [got 0 values in 0.000055 sec, idle 5 sec]'
      

      Such inconsistency may mislead.

            zabbix.dev Zabbix Development Team
            zalex_ua Oleksii Zagorskyi
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: