-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Note that with SQLite database on proxies, history data from proxies before the upgrade will be lost, because SQLite database upgrade is not supported and the SQLite database file has to be manually removed. When proxy is started for the first time and the SQLite database file is missing, proxy creates it automatically.
Source: https://www.zabbix.com/documentation/4.2/manual/installation/upgrade/packages/debian_ubuntu
All the effort I've done for this formula in the last months, was for one large project: I would like to use Saltstack. to help me lift my 30+ Zabbix Proxies from 4.0 to 4.2 and later on to 4.4.
One point I've missed during my planing, was that I have to drop/delete the Zabbix Proxy SQLite database file. I'm not fit enough with Saltstack yet, and would like to ask for help. Right now, I have no idea where to start.
I would guess I have to add some lines in "https://github.com/saltstack-formulas/zabbix-formula/blob/master/zabbix/proxy/init.sls" after line 57.
Maybe something like:
"onchanges_in pillar.version.repo execute sls.zabbix_proxy_del_sqlite -> cmd.run rm pillar.dbname + watch_in service: zabbix-proxy"
The process would have to be like this:
- The value of the pillar version_repo changes (onchanges?)
- Zabbix Proxy has to be stopped (watch?)
- SQLite has to be dropped (cmd.run?)
- New Zabbix repo has to be installed (that's already the case I guess)
- New Zabbix Proxy daemon has to be installed (that's already the case I guess)
- Zabbix Proxy daemon gets started (that's already the case I guess)
- New Zabbix Proxy SQLite database gets created by the daemon
May I ask for your help @hatifnatt and @aboe76 ?