Hi all!
Let's share my today's experience. It may help someone.
I'm running Zabbix 2.0.4 on debian 6.0.6.
Under used server.
Nearly everything from stock.
Zabbix worked well but I encountered a lot of strange problem after reboot:
- web application failed to work with "curl_easy_perform: Couldn't resolve host name"
- a lot of item queued "More than 10 minutes" -> empty charts
- wrong time in logs and Monitoring web "Last check"
After a lot of test (tuning pollers, cache, dns resolv, ...) I found that time was the real problem (if I waited 2 hours everything resolved alone).
1 - hwclock
Found at https://www.zabbix.com/forum/archive/index.php/t-20664.html
was 2 hours in the futur
fixed with
2 - init.d scripts order
https://support.zabbix.com/browse/ZBXNEXT-1232
https://support.zabbix.com/browse/ZBXNEXT-890
At install time, I copied misc/debian scripts and didn't pay attention to update-rc.d warning message "missing LSB information"
(I think that zabbix started before ntp)
To fix it I edited /etc/init.d/zabbix-server and /etc/init.d/zabbix-agent :
(For server)
"Required-Start: $all" is probably not optimal but worked for me.
After next reboot everything is ok.
Have fun and long life to zabbix
/toobtoob (waiting or https://support.zabbix.com/browse/ZBXNEXT-98)
Let's share my today's experience. It may help someone.
I'm running Zabbix 2.0.4 on debian 6.0.6.
Under used server.
Nearly everything from stock.
Zabbix worked well but I encountered a lot of strange problem after reboot:
- web application failed to work with "curl_easy_perform: Couldn't resolve host name"
- a lot of item queued "More than 10 minutes" -> empty charts
- wrong time in logs and Monitoring web "Last check"
After a lot of test (tuning pollers, cache, dns resolv, ...) I found that time was the real problem (if I waited 2 hours everything resolved alone).
1 - hwclock
Found at https://www.zabbix.com/forum/archive/index.php/t-20664.html
Code:
hwclock --show
fixed with
Code:
hwclock --systohc
https://support.zabbix.com/browse/ZBXNEXT-1232
https://support.zabbix.com/browse/ZBXNEXT-890
At install time, I copied misc/debian scripts and didn't pay attention to update-rc.d warning message "missing LSB information"
(I think that zabbix started before ntp)
To fix it I edited /etc/init.d/zabbix-server and /etc/init.d/zabbix-agent :
(For server)
Code:
#! /bin/sh ### BEGIN INIT INFO # Provides: zabbix-server # Required-Start: $all # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: zabbix-server # Description: zabbix-server ### END INIT INFO
After next reboot everything is ok.
Have fun and long life to zabbix
/toobtoob (waiting or https://support.zabbix.com/browse/ZBXNEXT-98)