Removing an Analytics installation
To remove an installation of Analytics that was installed by RPM on a separate server:
Remove the ZenETL ZenPack from the Resource Manager master:
Log in to the Control Center browser interface.
Stop Resource Manager by clicking Stop in the Actions column for Zenoss.resmgr.
In the Stop Services dialog, click Stop Services.
Display the child services of Resource Manager to ensure they have stopped.
In the Application column of the Applications table, click Zenoss.resmgr, then scroll down to the Services table. Stopped services have a grey circle icon in the Status column.
Create a snapshot of the Resource Manager service by logging in to the Control Center master host as a user with serviced CLI privileges. Execute the following command to create a snapshot.
serviced service snapshot Zenoss.resmgr
The snapshot ID is displayed upon completion.
Restart the following required services.
- The modelling and event database services:
Note: In the Services table, the Failing icon (a red circle with an exclamation point) in the Status column represents the cumulative result of one or more customized health checks. To view the status of individual health checks, move the pointer over the icon, which displays a pop-up. When the Failing icon is present, a service is unable to support the normal operations of Resource Manager. For this task, the Zope health checks includes failing health checks of zproxy_answering, which does not affect this procedure.
Remove the ZenPacks.zenoss.ZenETL ZenPack by executing the following command.
serviced service run zope zenpack-manager uninstall ZenPacks.zenoss.ZenETL
In the Control Center browser interface, restart Resource Manager.
Log in to the Analytics server and change to the root user:
su - root
Stop the Analytics server:
service zenoss_analytics stop
Remove the Analytics program files:
rpm -e zenoss-analytics
This command removes the program files, but does not remove configuration, log files, data files, or databases.
To remove configuration files, enter:
rm -rf /etc/zenoss_analytics
To remove data and log files, enter:
rm -rf /opt/zenoss_analytics
To remove databases (this will erase all your data), enter the following command as the root user:
mysql -u root -e 'drop database reporting; drop database zenoss_analytics';