Hi all
When i add a proxy through web console:
Administration --> DM --> create proxy
then enter the "Proxy name" as "proxynj", and other keep the default
I have got a lot errors in zabbix_server.log like below:
when turn the log to debug:
the zabbix version:
[root@my2950 zabbix-2.0.7rc1]# /usr/local/zabbix/sbin/zabbix_server --version
Zabbix server v2.0.7rc1 (revision 36371) (22 April 2013)
Compilation time: Jun 21 2013 10:18:48
[root@my2950 zabbix-2.0.7rc1]#
configuration option:
the log:
the database is oracle 11G r2, in the database:
select hostid from hosts where host='proxynj' and status in (5) and hostid between 100000000000000 and 199999999999999
SQL> select hostid from hosts where host='proxynj';
HOSTID
---------------------
10095
SQL>
but there is nothing when add "between 100000000000000 and 199999999999999"
it looks like this caused the proxy can not work well.
How can i fix this problem?
in the proxy machine, there are a lot errers like this blow:
below is my proxy configuration information:
[root@proxynj ~]# cd /etc/zabbix/
[root@proxynj zabbix]# hostname
proxynj
[root@proxynj zabbix]# grep ${HOSTNAME} *
zabbix_agentd.conf:Hostname=proxynj
zabbix_proxy.conf:Hostname=proxynj
zabbix_proxy.conf:HostnameItem=proxynj
[root@proxynj zabbix]#
thanks.
When i add a proxy through web console:
Administration --> DM --> create proxy
then enter the "Proxy name" as "proxynj", and other keep the default
I have got a lot errors in zabbix_server.log like below:
Code:
23039:20130621:115506.773 Heartbeat from active proxy on [10.111.0.17] failed: proxy [proxynj] not found
Code:
16089:20130621:141617.732 In collect_selfmon_stats()
16089:20130621:141617.733 End of collect_selfmon_stats()
16089:20130621:141617.733 sleeping for 1 seconds
16075:20130621:141618.015 Trapper got [] len 0
16089:20130621:141618.733 In collect_selfmon_stats()
16089:20130621:141618.733 End of collect_selfmon_stats()
16089:20130621:141618.733 sleeping for 1 seconds
16087:20130621:141618.863 In process_escalations()
16087:20130621:141618.863 query [txnlev:0] [select escalationid,actionid,triggerid,eventid,r_eventid,esc_step,status,nextcheck from escalations where 1=1 and escalationid between 100000000000000 and 199999999999999 order by actionid,triggerid,escalationid]
16087:20130621:141618.865 End of process_escalations()
16087:20130621:141618.865 escalator #1 spent 0.002681 seconds while processing escalations
16087:20130621:141618.865 sleeping for 3 seconds
16076:20130621:141619.142 In get_pinger_hosts()
16076:20130621:141619.142 In DCconfig_get_poller_items() poller_type:3
16076:20130621:141619.142 End of DCconfig_get_poller_items():0
16076:20130621:141619.142 End of get_pinger_hosts():0
16076:20130621:141619.142 In process_pinger_hosts()
16076:20130621:141619.142 End of process_pinger_hosts()
16076:20130621:141619.142 icmp pinger #1 spent 0.000394 seconds while processing 0 items
16076:20130621:141619.142 In DCconfig_get_poller_nextcheck() poller_type:3
16076:20130621:141619.142 End of DCconfig_get_poller_nextcheck():-1
16076:20130621:141619.142 sleeping for 5 seconds
16075:20130621:141619.360 Trapper got [{
"request":"proxy config",
"host":"proxynj"}] len 47
16075:20130621:141619.360 In send_proxyconfig()
16075:20130621:141619.360 query [txnlev:0] [select hostid from hosts where host='proxynj' and status in (5) and hostid between 100000000000000 and 199999999999999]
16075:20130621:141619.365 Proxy config request from active proxy on [10.111.0.17] failed: proxy [proxynj] not found
16073:20130621:141619.381 Trapper got [{
"request":"proxy heartbeat",
"host":"proxynj"}] len 50
16073:20130621:141619.381 In recv_proxy_heartbeat()
[COLOR="red"] [B]16073:20130621:141619.381 query [txnlev:0] [select hostid from hosts where host='proxynj' and status in (5) and hostid between 100000000000000 and 199999999999999]
16073:20130621:141619.385 Heartbeat from active proxy on [10.111.0.17] failed: proxy [proxynj] not found[/B][/COLOR]
16065:20130621:141619.639 In get_values()
16088:20130621:141619.639 In process_proxy()
16065:20130621:141619.639 In DCconfig_get_poller_items() poller_type:0
16088:20130621:141619.639 In DCconfig_get_proxypoller_hosts()
16065:20130621:141619.639 End of DCconfig_get_poller_items():0
16088:20130621:141619.639 End of DCconfig_get_proxypoller_hosts():0
16065:20130621:141619.639 End of get_values():0
16088:20130621:141619.639 End of process_proxy()
16065:20130621:141619.639 poller #1 spent 0.000270 seconds while updating 0 values
16088:20130621:141619.639 proxy poller #1 spent 0.000328 seconds while processing 0 proxies
16065:20130621:141619.639 In DCconfig_get_poller_nextcheck() poller_type:0
16088:20130621:141619.639 In DCconfig_get_proxypoller_nextcheck()
16065:20130621:141619.639 End of DCconfig_get_poller_nextcheck():-1
16088:20130621:141619.639 End of DCconfig_get_proxypoller_nextcheck():-1
16065:20130621:141619.639 sleeping for 5 seconds
16088:20130621:141619.639 sleeping for 5 seconds
16084:20130621:141619.639 Syncing ...
16084:20130621:141619.639 In DCsync_history() history_first:0 history_num:0
16084:20130621:141619.639 history syncer #2 spent 0.000042 seconds while processing 0 items
16084:20130621:141619.639 sleeping for 5 seconds
16069:20130621:141619.639 In get_values()
16069:20130621:141619.639 In DCconfig_get_poller_items() poller_type:0
16069:20130621:141619.639 End of DCconfig_get_poller_items():0
16069:20130621:141619.639 End of get_values():0
16069:20130621:141619.639 poller #5 spent 0.000188 seconds while updating 0 values
16069:20130621:141619.639 In DCconfig_get_poller_nextcheck() poller_type:0
16069:20130621:141619.639 End of DCconfig_get_poller_nextcheck():-1
16069:20130621:141619.640 sleeping for 5 seconds
16085:20130621:141619.661 Syncing ...
16085:20130621:141619.661 In DCsync_history() history_first:0 history_num:0
16085:20130621:141619.661 history syncer #3 spent 0.000044 seconds while processing 0 items
16085:20130621:141619.661 sleeping for 5 seconds
16067:20130621:141619.674 In get_values()
16067:20130621:141619.674 In DCconfig_get_poller_items() poller_type:0
16067:20130621:141619.674 End of DCconfig_get_poller_items():0
16067:20130621:141619.674 End of get_values():0
the zabbix version:
[root@my2950 zabbix-2.0.7rc1]# /usr/local/zabbix/sbin/zabbix_server --version
Zabbix server v2.0.7rc1 (revision 36371) (22 April 2013)
Compilation time: Jun 21 2013 10:18:48
[root@my2950 zabbix-2.0.7rc1]#
configuration option:
Code:
./configure --prefix=/usr/local/zabbix --sysconfdir=/etc/zabbix --docdir=/usr/share/doc --enable-server --with-oracle=/usr/lib/oracle/11.2/client64 --with-net-snmp --with-jabber --with-libcurl
Code:
[root@my2950 zabbix-2.0.7rc1]# more /var/log/zabbix/zabbix_server.log 20200:20130621:154534.324 Starting Zabbix Server. Zabbix 2.0.7rc1 (revision 36371). 20200:20130621:154534.324 ****** Enabled features ****** 20200:20130621:154534.324 SNMP monitoring: YES 20200:20130621:154534.324 IPMI monitoring: NO 20200:20130621:154534.324 WEB monitoring: YES 20200:20130621:154534.324 Jabber notifications: YES 20200:20130621:154534.324 Ez Texting notifications: YES 20200:20130621:154534.324 ODBC: NO 20200:20130621:154534.324 SSH2 support: NO 20200:20130621:154534.324 IPv6 support: NO 20200:20130621:154534.324 ****************************** 20200:20130621:154534.324 NodeID: 1 20200:20130621:154534.324 ****************************** 20200:20130621:154534.988 no records in table 'config' 20200:20130621:154535.226 no records in table 'config' 20201:20130621:154535.254 server #1 started [configuration syncer #1] 20202:20130621:154535.254 server #2 started [db watchdog #1] 20211:20130621:154535.261 server #11 started [trapper #3] 20209:20130621:154535.264 server #9 started [trapper #1] 20212:20130621:154535.275 server #12 started [trapper #4] 20213:20130621:154535.277 server #13 started [trapper #5] 20214:20130621:154535.278 server #14 started [icmp pinger #1] 20215:20130621:154535.280 server #15 started [alerter #1] 20210:20130621:154535.284 server #10 started [trapper #2] 20218:20130621:154535.297 server #18 started [node watcher #1] 20217:20130621:154535.298 server #17 started [timer #1] 20216:20130621:154535.300 server #16 started [housekeeper #1] 20216:20130621:154535.300 executing housekeeper 20219:20130621:154535.301 server #19 started [http poller #1] 20223:20130621:154535.309 server #23 started [history syncer #3] 20221:20130621:154535.315 server #21 started [history syncer #1] 20222:20130621:154535.318 server #22 started [history syncer #2] 20224:20130621:154535.322 server #24 started [history syncer #4] 20200:20130621:154535.332 server #0 started [main process] 20226:20130621:154535.340 server #26 started [proxy poller #1] 20227:20130621:154535.343 server #27 started [self-monitoring #1] 20225:20130621:154535.351 server #25 started [escalator #1] 20208:20130621:154535.490 server #8 started [unreachable poller #1]
select hostid from hosts where host='proxynj' and status in (5) and hostid between 100000000000000 and 199999999999999
SQL> select hostid from hosts where host='proxynj';
HOSTID
---------------------
10095
SQL>
but there is nothing when add "between 100000000000000 and 199999999999999"
it looks like this caused the proxy can not work well.
How can i fix this problem?
in the proxy machine, there are a lot errers like this blow:
Code:
2044:20130621:195040.659 Heartbeat message failed 2044:20130621:195141.995 Heartbeat message failed 2044:20130621:195242.287 Heartbeat message failed 2044:20130621:195340.552 Heartbeat message failed 2043:20130621:194541.852 Cannot obtain configuration data from server. Proxy host name might not be matching that on the server.
[root@proxynj ~]# cd /etc/zabbix/
[root@proxynj zabbix]# hostname
proxynj
[root@proxynj zabbix]# grep ${HOSTNAME} *
zabbix_agentd.conf:Hostname=proxynj
zabbix_proxy.conf:Hostname=proxynj
zabbix_proxy.conf:HostnameItem=proxynj
[root@proxynj zabbix]#
thanks.
Comment