-
Type:
Incident report
-
Resolution: Won't fix
-
Priority:
Trivial
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Hello TEam,
I am using zabbix 3.2. I am facing issue with active check and getting below error.
Error:
cannot send list of active checks to "192.168.32.44": host [monitoring.local] not found
Below are the detailed logs.
10483:20170724:135315.555 trapper got '{"request":"active checks","host":"monitoring.local","ip":"192.168.32.44"}'
10483:20170724:135315.555 In send_list_of_active_checks_json()
10483:20170724:135315.555 In get_hostid_by_host() host:'monitoring.local'
10483:20170724:135315.555 query [txnlev:0] [select hostid,status,tls_accept,tls_issuer,tls_subject,tls_psk_identity from hosts where host='monitoring.local' and status in (0,1) and flags<>2 and proxy_hostid is null]
10483:20170724:135315.562 query [txnlev:1] [begin;]
10483:20170724:135315.562 In DBregister_host_flush()
10483:20170724:135315.562 In DBregister_host_active()
10483:20170724:135315.562 query [txnlev:1] [select null from actions where eventsource=2 and status=0]
10483:20170724:135315.563 End of DBregister_host_active():FAIL
10483:20170724:135315.563 End of DBregister_host_flush()
10483:20170724:135315.563 query [txnlev:1] [commit;]
10483:20170724:135315.563 End of get_hostid_by_host():FAIL
10483:20170724:135315.563 cannot send list of active checks to "127.0.0.1": host [monitoring.local] not found
10483:20170724:135315.563 send_list_of_active_checks_json() sending [{"response":"failed","info":"host [monitoring.local] not found"}]
Here I have seen below query is getting used by active check to check host but in table "hosts" actually templates are there not showing host and hence getting host not found.
query :
select hostid,status,tls_accept,tls_issuer,tls_subject,tls_psk_identity from hosts where host='monitoring.local' and status in (0,1) and flags<>2 and proxy_hostid is null
Please look into the issue and suggest next action plz.
Regards,
Ronak Patel