Follow these steps to upgrade from a source-based install to a zenoss-stack .deb or rpm.
Note: For all commands, the prompt "#" indicates "run as root" and "$" indicates the zenoss user.
Get the Zenoss
.deb
(for Debian) or.rpm
(for RHEL and SUSE).The Zenoss stack includes its own copy of MySQL, which, by default, will run on port 3307. Change your current configuration to point to port 3307.
In the Zenoss interface, go to the Event Manager. Select Edit, and then change the port from 3306 to 3307
Back up all data:
$ zenbackup --file=/tmp/zenbackup.tgz
Make a note of which ZenPacks you have installed.
Shut down the system:
$ zenoss stop
Move the current Zenoss to a new name:
$ mv /usr/local/zenoss /usr/local/zenoss-2.1.3
Install the stack on Debian by using the
.deb
:# dpkg -i zenoss-stack*.deb
Copy the configuration files to a backup directory:
$ cd /usr/local/zenoss/zenoss/etc $ cp zeo.conf zope.conf /tmp
Start MySQL:
# /usr/local/zenoss/mysql/scripts/ctl.sh start
Reinstall any
.egg
ZenPacks that were previously installed. For.zip
ZenPacks, convert these to.egg
files and then install them.Load your data back with zenrestore:
$ zenrestore --dbuser=zenoss --dbpass=zenoss --file /tmp/zenbackup.tgz
Copy the configuration files back:
$ cp /tmp/zope.conf /usr/local/zenoss/zenoss/etc $ cp /tmp/zeo.conf /usr/local/zenoss/zenoss/etc
Start zeo:
$ zeoctl start
Migrate the data:
$ zenmigrate
Re-register the portlets:
$ zendmd >>> from Products.ZenWidgets.ZenossPortlets.ZenossPortlets \ import register_default_portlets >>> register_default_portlets(zport.ZenPortletManager) >>> commit()
$ zenoss start