I'm trying to move the whole zabbix-server (single child node) from one machine to another. I'm having problems transfering the mysql data for which I wish not to conserv the history as it is too big.
The problem is simply that when I open the php frontend, each pages have this message at the top... "SELECT * FROM config WHERE (configid div 100000000000000) in (2)" and it can appear once or twice.
The steps I have done to arrive at that point:
On the old machine, dump these tables...
On the new machine:
Copied all the configuration files, be it php or .conf to new machine.
Log onto mysql as user zabbix.
Convert to a child node:
and then import the dump from the old machine.
Now, this configid, I don't quite get it since both config tables are identical on the old and new machine. Obviously, I missed something somewhere. Other than that, all the settings seems to be find when I log to the frontend and examine what is there. Did not spot anything missing, just that SELECT error that always appear.
Thanks for any pointers.
The problem is simply that when I open the php frontend, each pages have this message at the top... "SELECT * FROM config WHERE (configid div 100000000000000) in (2)" and it can appear once or twice.
The steps I have done to arrive at that point:
On the old machine, dump these tables...
- actions
- alerts
- applications
- auditlog
- conditions
- config
- dchecks
- dhosts
- drules
- dservices
- escalations
- functions
- graphs
- graphs_items
- groups
- help_items
- hosts
- hosts_groups
- hosts_profiles
- hosts_profiles_ext
- hosts_templates
- httpstep
- httpstepitem
- httptest
- httptestitem
- ids
- images
- items
- items_applications
- mappings
- media
- media_type
- node_cksum
- nodes
- opconditions
- operations
- profiles
- proxy_dhistory
- proxy_history
- rights
- screens
- screens_items
- scripts
- service_alarms
- services
- services_links
- services_times
- slides
- slideshows
- sysmaps
- sysmaps_elements
- sysmaps_link_triggers
- sysmaps_links
- trends_uint
- trigger_depends
- triggers
- users
- users_groups
- usrgrp
- valuemaps
Code:
mysqldump --opt -u root -p zabbix actions alerts applications auditlog conditions config dchecks dhosts drules dservices escalations functions graphs graphs_items groups help_items hosts hosts_groups hosts_profiles hosts_profiles_ext hosts_templates httpstep httpstepitem httptest httptestitem ids images items items_applications mappings media media_type node_cksum nodes opconditions operations profiles proxy_dhistory proxy_history rights screens screens_items scripts service_alarms services services_links services_times slides slideshows sysmaps sysmaps_elements sysmaps_link_triggers sysmaps_links trends_uint trigger_depends triggers users users_groups usrgrp valuemaps | gzip -9 > zabbix.cfg.sql.gz
Copied all the configuration files, be it php or .conf to new machine.
Log onto mysql as user zabbix.
Code:
mysql> drop database zabbix; mysql> create database zabbix; mysql> use zabbix; mysql> source /usr/share/zabbix-server/mysql.sql mysql> source /usr/share/zabbix-server/data.sql mysql> exit
Code:
zabbix_server -n 2 -c /etc/zabbix/zabbix_server.conf
Now, this configid, I don't quite get it since both config tables are identical on the old and new machine. Obviously, I missed something somewhere. Other than that, all the settings seems to be find when I log to the frontend and examine what is there. Did not spot anything missing, just that SELECT error that always appear.
Thanks for any pointers.
Comment