Ad Widget

Collapse

Zabbix Agent 2 is not communicating with the Zabbix server for new hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • idk-nvanaert
    Junior Member
    • Jun 2023
    • 3

    #1

    Zabbix Agent 2 is not communicating with the Zabbix server for new hosts

    Hello everybody,

    Recently I needed to add some servers to my Zabbix host, but for some unknown reason they're not reporting to the Zabbix server. It doesn't matter how I configure the agent or the server. Hosts that were configured prior to this issue are working fine. I'm running zabbix-server 6.0.18 and zabbix-agent-6.0.18 (I tried previous agent versions too, but it did not resolve the issue).

    - Communication between the agent and server is accepted (I verified using telnet on TCP ports 10050 and 10051).
    - The agent configuration is exactly the same on the new agents as it is on the old agents. The virtual machine is running Microsoft Windows Server 2019 Standard
    - The server is running Ubuntu Server 20.04.6 LTS
    - HOST2 is the configured hostname on both the Ubuntu server and Windows Server (and case correct).
    - The linux server is able to resolve HOST2 via the domain controller. back to xxxx.com (xxxx is a redacted domain) just fine and is able to resolve the hostname standalone as well
    - I tried configuring the host both via the Agent via IP and DNS both of them show the same result.

    After a while I decided to turn on debugging on the agent and it showed me the following result:

    2023/06/01 11:45:16.555655 sending passive check response: ZBX_NOTSUPPORTED: 'Unknown metric HOST2' to '10.0.102.10'
    2023/06/01 11:45:31.626833 received passive check request: 'HOST2' from '10.0.102.10'
    2023/06/01 11:45:31.626833 [1] processing update request (1 requests)
    2023/06/01 11:45:31.626833 [1] cannot monitor metric "HOST2": Unknown metric HOST2
    2023/06/01 11:45:31.626833 sending passive check response: ZBX_NOTSUPPORTED: 'Unknown metric HOST2' to '10.0.102.10'
    2023/06/01 11:45:38.672817 [101] In refreshActiveChecks() from [10.0.102.10:10051]
    2023/06/01 11:45:38.672817 connecting to [10.0.102.10:10051] [timeout:3s, connection timeout:3s]
    2023/06/01 11:45:38.705134 sending [{"request":"active checks","host":"HOST2","version":"6.0"}] to [10.0.102.10:10051]
    2023/06/01 11:45:38.705499 receiving data from [10.0.102.10:10051]
    2023/06/01 11:45:38.741462 received [{"response":"success","data":[]}] from [10.0.102.10:10051]
    2023/06/01 11:45:38.741636 [101] End of refreshActiveChecks() from [10.0.102.10:10051]
    2023/06/01 11:45:38.741636 [101] processing update request (0 requests)
    2023/06/01 11:45:38.741636 [101] skipping empty update for unregistered client​

    Does anybody have any idea what is causing this issue (with only new clients)? Can anybody advise me on how to resolve the issue?​
  • idk-nvanaert
    Junior Member
    • Jun 2023
    • 3

    #2
    Server logs:

    62931:20230601:093312.722 trapper got '{"request":"active checks","host":"HOST2","version":"6.0"}'
    62931:20230601:093312.722 In send_list_of_active_checks_json()
    62931:20230601:093312.722 In is_ip4() ip:'10.1.102.13'
    62931:20230601:093312.722 End of is_ip4():SUCCEED
    62931:20230601:093312.722 In get_hostid_by_host() host:'HOST2' metadata:''
    62931:20230601:093312.722 query [txnlev:0] [select h.hostid,h.status,h.tls_accept,h.tls_issuer,h.tls_ subject,h.tls_psk_identity,a.host_metadata,a.liste n_ip,a.listen_dns,a.listen_port,a.flags from hosts h left join autoreg_host a on a.>
    62931:20230601:093312.726 query [txnlev:1] [begin;]
    62931:20230601:093312.726 In DBregister_host_flush()
    62931:20230601:093312.726 In DBregister_host_active()
    62931:20230601:093312.726 query [txnlev:1] [select null from actions where eventsource=2 and status=0]
    62931:20230601:093312.726 End of DBregister_host_active():FAIL
    62931:20230601:093312.726 End of DBregister_host_flush()
    62931:20230601:093312.726 query [txnlev:1] [commit;]
    62931:20230601:093312.726 End of get_hostid_by_host():SUCCEED
    62931:20230601:093312.726 query [txnlev:0] [select itemid from items where type=7 and flags<>2 and hostid=10583]
    62931:20230601:093312.727 send_list_of_active_checks_json() sending [{"response":"success","data":[]}]
    62931:20230601:093312.727 End of send_list_of_active_checks_json():SUCCEED
    62931:20230601:093312.727 zbx_setproctitle() title:'trapper #4 [processed data in 0.004976 sec, waiting for connection]'
    62613:20230601:093312.752 zbx_setproctitle() title:'http poller Home [got 0 values in 0.000800 sec, getting values]'
    62613:20230601:093312.752 In process_httptests()
    62613:20230601:093312.752 query [txnlev:0] [select h.hostid,h.host,h.name,t.httptestid,t.name,t.agent ,t.authentication,t.http_user,t.http_password,t.ht tp_proxy,t.retries,t.ssl_cert_file,t.ssl_key_file, t.ssl_key_password,t.verify_peer,>
    62613:20230601:093312.753 End of process_httptests()
    62613:20230601:093312.753 query [txnlev:0] [select min(t.nextcheck) from httptest t,hosts h where t.hostid=h.hostid and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.ma>
    62613:20230601:093312.753 No httptests to process in get_minnextcheck.
    62613:20230601:093312.753 zbx_setproctitle() title:'http poller Home [got 0 values in 0.000654 sec, idle 5 sec]'
    62816:20230601:093313.004 zbx_setproctitle() title:'self-monitoring [processing data]'
    62816:20230601:093313.004 In collect_selfmon_stats()
    62816:20230601:093313.004 End of collect_selfmon_stats()
    62816:20230601:093313.004 zbx_setproctitle() title:'self-monitoring [processed data in 0.000125 sec, idle 1 sec]'
    62815:20230601:093313.010 zbx_setproctitle() title:'proxy poller Home [exchanged data with 0 proxies in 0.000135 sec, exchanging data]'
    62815:20230601:093313.010 In process_proxy()
    62815:20230601:093313.010 In DCconfig_get_proxypoller_hosts()
    62815:20230601:093313.010 End of DCconfig_get_proxypoller_hosts():0
    62815:20230601:093313.010 End of process_proxy()
    62815:20230601:093313.010 In DCconfig_get_proxypoller_nextcheck()
    62815:20230601:093313.010 End of DCconfig_get_proxypoller_nextcheck():-1
    62815:20230601:093313.010 zbx_setproctitle() title:'proxy poller Home [exchanged data with 0 proxies in 0.000105 sec, idle 5 sec]'
    62808:20230601:093313.097 zbx_setproctitle() title:'history syncer Home [processed 0 values, 0 triggers in 0.000100 sec, syncing history]'
    62808:20230601:093313.097 In zbx_sync_history_cache() history_num:45
    62808:20230601:093313.097 In DCmass_prepare_history() history_num:44
    62808:20230601:093313.097 End of DCmass_prepare_history()
    62808:20230601:093313.097 In DBmass_add_history()
    62808:20230601:093313.097 In zbx_history_add_values()
    62808:20230601:093313.097 query [txnlev:1] [begin;]
    62808:20230601:093313.097 query [txnlev:1] [insert into history (itemid,clock,ns,value) values (42792,1685611992,373162675,0.000155),(43452,16856 11992,398304359,2.6759080000000002),(43572,1685611 992,369603466,0),(43632,1685611992,3735>
    ]
    62808:20230601:093313.098 query [txnlev:1] [insert into history_uint (itemid,clock,ns,value) values (42852,1685611992,380233389,0),(43332,1685611992,3 77041112,2305413120),(43392,1685611992,366025755,0 ),(43512,1685611992,394818356,0),(>
    ]
    62808:20230601:093313.099 query [txnlev:1] [commit;]
    62808:20230601:093313.102 End of zbx_history_add_values()
    62808:20230601:093313.102 End of DBmass_add_history()
    62808:20230601:093313.102 In DCmass_update_trends()
    62808:20230601:093313.102 End of DCmass_update_trends()
    62808:20230601:093313.102 query [txnlev:1] [begin;]
    62808:20230601:093313.102 In DBmass_update_items()
    62808:20230601:093313.102 End of DBmass_update_items()
    62808:20230601:093313.102 In zbx_process_events() events_num:0
    62808:20230601:093313.102 End of zbx_process_events() processed:0
    62808:20230601:093313.103 query [txnlev:1] [commit;]
    62808:20230601:093313.103 In DCupdate_trends()
    62808:20230601:093313.103 End of DCupdate_trends()
    62808:20230601:093313.103 query [txnlev:1] [begin;]
    62808:20230601:093313.103 In recalculate_triggers()
    62808:20230601:093313.103 In zbx_link_triggers_with_functions() trigger_order_num:42
    62808:20230601:093313.103 End of zbx_link_triggers_with_functions() triggers_func_pos_num:42
    62808:20230601:093313.103 In evaluate_expressions() tr_num:42
    62808:20230601:093313.103 In substitute_functions()
    62808:20230601:093313.103 In zbx_extract_functionids() tr_num:42
    62808:20230601:093313.103 End of zbx_extract_functionids() functionids_num:83
    62808:20230601:093313.103 In zbx_populate_function_items() functionids_num:83
    62808:20230601:093313.103 End of zbx_populate_function_items() ifuncs_num:83
    62808:20230601:093313.103 In zbx_evaluate_item_functions() funcs_num:62
    62808:20230601:093313.103 In evaluate_function2() function:'min(/HOST3/service.info["tiledatamodelsvc",state],#3)' ts:'2023.06.01 09:33:12.451573786'
    62808:20230601:093313.103 In evaluate_MIN_or_MAX()
    62808:20230601:093313.103 In get_function_parameter_hist_range() parameters:'#3' Nparam:1
    62808:20230601:093313.103 get_function_parameter_hist_range() type:num value:3 timeshift:0
    62808:20230601:093313.103 End of get_function_parameter_hist_range():SUCCEED
    62808:20230601:093313.103 In zbx_vc_get_values() itemid:46512 value_type:3 count:3 period:0 end_timestamp '2023.06.01 09:33:12.451573786'
    62808:20230601:093313.103 In zbx_history_get_values() itemid:46512 value_type:3 start:1685611992 count:0 end:2145916800
    62808:20230601:093313.103 query [txnlev:1] [select clock,ns,value from history_uint where itemid=46512 and clock>1685611992]
    62808:20230601:093313.104 End of zbx_history_get_values():SUCCEED values:0
    62808:20230601:093313.104 In zbx_history_get_values() itemid:46512 value_type:3 start:0 count:4 end:1685611992
    62808:20230601:093313.104 query [txnlev:1] [select clock,ns,value from history_uint where itemid=46512 and clock<=1685611992 and clock>1685608392 order by clock desc limit 4]
    62808:20230601:093313.104 query [txnlev:1] [select clock,ns,value from history_uint where itemid=46512 and clock=1685611812]
    62808:20230601:093313.104 End of zbx_history_get_values():SUCCEED values:4
    62808:20230601:093313.105 End of zbx_vc_get_values():SUCCEED count:3 cached:1
    62808:20230601:093313.105 End of evaluate_MIN_or_MAX():SUCCEED
    62808:20230601:093313.105 End of evaluate_function2():SUCCEED value:'0' of type:'uint64'


    Comment

    • idk-nvanaert
      Junior Member
      • Jun 2023
      • 3

      #3
      The issue has been resolved after updating a very old template.

      Comment

      Working...