Ok, I've read dozens of different posts about this, but I still can't quite figure this out.
I have a simple setup of a master server and a single remote active proxy. About 75% of the hosts/items are monitored via the master, about 25% via the proxy.
Number of hosts (monitored/not monitored/templates) 436 307 / 66 / 63
Number of items (monitored/disabled/not supported) 2656 2311 / 38 / 307
Number of triggers (enabled/disabled)[problem/unknown/ok] 1153 958 / 195 [32 / 341 / 585]
I am using a combination of agents (win/lin), simple checks and ping checks (no SNMP, no IPMI, no active checks).
My item queue for ALL items monitored by the proxy was several days behind. I rebuilt the database (MySQL InnoDB) and events started flowing into the master. After 12 hours, it was already several hours behind. I've made several tweaks to the environment, restarted the services and MySQL on both the master and proxy, but can't get it to catch up. All checks (711 of them) are queued for more than 10 minutes (at least several hours).
Here are some relevant settings from the Master:
###
zabbix_server.conf
###
StartPollers=30
StartPollersUnreachable=2
StartTrappers=20
StartPingers=2
CacheSize=32M
###
my.cnf
###
innodb_file_per_table
max_connections = 400
default-storage-engine=innodb
innodb_log_file_size = 250M
innodb_flush_log_at_trx_commit = 2
And from the Proxy:
###
zabbix_proxy.conf
###
ProxyMode=0
ProxyLocalBuffer=0
ProxyOfflineBuffer=120
ConfigFrequency=900
DataSenderFrequency=1
StartPollers=30
StartPollersUnreachable=2
StartTrappers=20
StartPingers=2
CacheSize=32M
StartDBSyncers=16
###
my.cnf
###
innodb_file_per_table
max_connections = 300
default-storage-engine=innodb
innodb_log_file_size = 250M
innodb_flush_log_at_trx_commit = 2
Some other notes:
- Time is identical (same time zone also), using the same NTP source
- Both hosts are resolved properly (both added to /etc/hosts also, to eliminate DNS issues)
- Both hosts can access each other over 10050 and 10051
- Both proxy and master are using the same version of Zabbix (1.8.4) and MySQL (Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1)
I'm not seeing any abnormalities in the logs. Data is being collected in the proxy MySQL database in real-time, as I can see that in the database directly.
Any ideas on why this is lagging? Any way to catch it up without deleting proxy history? E.g. is there any way to force a sync of proxy data? I don't mind pausing monitoring on the master for a couple minutes while this occurs. I just don't want to have to rebuild the database again.
Thanks,
Michael
I have a simple setup of a master server and a single remote active proxy. About 75% of the hosts/items are monitored via the master, about 25% via the proxy.
Number of hosts (monitored/not monitored/templates) 436 307 / 66 / 63
Number of items (monitored/disabled/not supported) 2656 2311 / 38 / 307
Number of triggers (enabled/disabled)[problem/unknown/ok] 1153 958 / 195 [32 / 341 / 585]
I am using a combination of agents (win/lin), simple checks and ping checks (no SNMP, no IPMI, no active checks).
My item queue for ALL items monitored by the proxy was several days behind. I rebuilt the database (MySQL InnoDB) and events started flowing into the master. After 12 hours, it was already several hours behind. I've made several tweaks to the environment, restarted the services and MySQL on both the master and proxy, but can't get it to catch up. All checks (711 of them) are queued for more than 10 minutes (at least several hours).
Here are some relevant settings from the Master:
###
zabbix_server.conf
###
StartPollers=30
StartPollersUnreachable=2
StartTrappers=20
StartPingers=2
CacheSize=32M
###
my.cnf
###
innodb_file_per_table
max_connections = 400
default-storage-engine=innodb
innodb_log_file_size = 250M
innodb_flush_log_at_trx_commit = 2
And from the Proxy:
###
zabbix_proxy.conf
###
ProxyMode=0
ProxyLocalBuffer=0
ProxyOfflineBuffer=120
ConfigFrequency=900
DataSenderFrequency=1
StartPollers=30
StartPollersUnreachable=2
StartTrappers=20
StartPingers=2
CacheSize=32M
StartDBSyncers=16
###
my.cnf
###
innodb_file_per_table
max_connections = 300
default-storage-engine=innodb
innodb_log_file_size = 250M
innodb_flush_log_at_trx_commit = 2
Some other notes:
- Time is identical (same time zone also), using the same NTP source
- Both hosts are resolved properly (both added to /etc/hosts also, to eliminate DNS issues)
- Both hosts can access each other over 10050 and 10051
- Both proxy and master are using the same version of Zabbix (1.8.4) and MySQL (Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (x86_64) using readline 5.1)
I'm not seeing any abnormalities in the logs. Data is being collected in the proxy MySQL database in real-time, as I can see that in the database directly.
Any ideas on why this is lagging? Any way to catch it up without deleting proxy history? E.g. is there any way to force a sync of proxy data? I don't mind pausing monitoring on the master for a couple minutes while this occurs. I just don't want to have to rebuild the database again.
Thanks,
Michael
Comment