Open-AudIT and Open-AudIT Enterprise can be uninstalled as separate items. The Opmantek software stack is strongly interconnected and modules are substantially interdependent for correct operation. If you have other Opmantek products installed on the same server as Open-AudIT Enterprise, you should disable (as opposed to uninstall) Open-AudIT Enterprise. This is detailed below.
You are using a standard Open-AudIT and Open-AudIT Enterprise install. If you have changed items such as database name, passwords, etc you will need to adjust the commands below.
To remove the database from the server, type the below commands.
Open-AudIT can also store attachment data. If you have any attachments, they will be deleted in the next step.
To remove all Open-AudIT program files, run the below commands. Note the two apache web directory commands. One will work on Debian based systems, the other will work on RedHat based systems. It is safe to run both.
Uninstalling Open-AudIT Enterprise
Other Opmantek Software Installed
As advised above, if you have other Opmantek software installed should should not uninstall the Open-AudIT Enterprise program files. The Opmantek software stack is strongly interconnected and modules are substantially interdependent for correct operation. To prevent Open-AudIT Enterprise being available on the server you should edit the file /usr/local/omk/conf/opCommon.nmis. Find the attribute omkd => load_applications and remove Open-AudIT from the list. This will prevent Open-AudIT from being available on the server. You should then execute "service omkd restart" to apply the configuration (ie, stop Open-AudIT running).
No Other Opmantek Software Installed
If no other Opmantek software is installed, you can safely uninstall Open-AudIT Enterprise and it's data by running the below commands. Note the two apache config commands. One will work on Debian based systems, the other will work on RedHat based systems. It is safe to run both.
Removing the Prerequisites (optional)
If you wish to remove all the prerequisites installed by Open-AudIT, see below. Note that this will remove programs such as Apache, MySQL, etc from your server. You should ensure you do not require ANY of these packages on your server. Removing them will break all programs that require them. The packages we install as pre-requisites are below.
Debian Based: mysql-server apache2 apache2-utils libapache2-mod-proxy-html libapache2-mod-php5 openssh-client php5 php5-ldap php5-mcrypt php5-mysql php5-snmp nmap zip wget curl sshpass screen smbclient logrotate libtime-modules-perl
RedHat Based: mysql mysql-server httpd php php-cli php-mysql php-ldap php-mbstring php-mcrypt php-process php-snmp php-xml nmap zip curl wget sshpass screen samba-client logrotate perl-Time-modules
Open-AudIT also enables the EPEL repository on RedHat based systems.