I have a new install of Zabbix 1.6.4 running in RHEL 5 machine. I'm having problem to add monitered host to it. I keep getting "host no found" error when the client try to get the active checks list from the server.
The following is the debug log from the server side:
29772:20090519:135918 Trapper got [{
"request":"active checks",
"host":"hostname"}] len 52
29772:20090519:135918 In send_list_of_active_checks_json()
29772:20090519:135918 In get_hostid_by_host(host:'hostname')
29772:20090519:135918 Query [select hostid from hosts where host='hostname' and hostid between 100000000000000 and 199999999999999]
29772:20090519:135918 In get_ip_by_socket()
29772:20090519:135918 Send list of active checks to [10.x.x.x] failed: host [hostname] not found
29772:20090519:135918 Sending [{
"response":"failed",
"info":"host [hostname] not found"}]
I understand the difference between the host(object) name and the actual DNS name of the client, I think. I have the following client record in the "hosts" table:
| 10049 | 0 | hostname | hostname.mydomain.com | 0 | 0.0.0.0 | 10050 | 0 | 0 | | 0 | 0 | 0 | 0 | 0 | 0 | 623 | -1 | 2 | | | 0 | 0 | 0 | 0 |
The only strange thing I can find is the "hostid". The actual hostid assigned to the client is "10049" and the query appears to contain the restriction of "hostid between 100000000000000 and 199999999999999".
I'm not sure whether this is the actual cause of my problem. If so, how can I fix it?
Thanks in advance for the helps.
The following is the debug log from the server side:
29772:20090519:135918 Trapper got [{
"request":"active checks",
"host":"hostname"}] len 52
29772:20090519:135918 In send_list_of_active_checks_json()
29772:20090519:135918 In get_hostid_by_host(host:'hostname')
29772:20090519:135918 Query [select hostid from hosts where host='hostname' and hostid between 100000000000000 and 199999999999999]
29772:20090519:135918 In get_ip_by_socket()
29772:20090519:135918 Send list of active checks to [10.x.x.x] failed: host [hostname] not found
29772:20090519:135918 Sending [{
"response":"failed",
"info":"host [hostname] not found"}]
I understand the difference between the host(object) name and the actual DNS name of the client, I think. I have the following client record in the "hosts" table:
| 10049 | 0 | hostname | hostname.mydomain.com | 0 | 0.0.0.0 | 10050 | 0 | 0 | | 0 | 0 | 0 | 0 | 0 | 0 | 623 | -1 | 2 | | | 0 | 0 | 0 | 0 |
The only strange thing I can find is the "hostid". The actual hostid assigned to the client is "10049" and the query appears to contain the restriction of "hostid between 100000000000000 and 199999999999999".
I'm not sure whether this is the actual cause of my problem. If so, how can I fix it?
Thanks in advance for the helps.
Comment