You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Prerequisites

The individual performing this installation has some Linux experience.

 Root level server access.

An existing (working) Open-AudIT installation.

NOTE - This guide is for upgrading an existing Linux installation to Open-AudIT 1.0.4. If you wish to install onto a clean server, use the pre-requisites and installation guides.

Backup Your Existing Install

Backup your database. Substitute your actual username for USER (likely openaudituser), password for PASSWORD (likely openaudituserpassword), your database name (likely openaudit) for DATABASE_NAME and a suitable path and filename for BACKUP_FILE_NAME in the command below.

mysqldump -u USER -pPASSWORD DATABASE_NAME > BACKUP_FILE_NAME.sql

Backup your files by copying your existing files to a backup directory. 

cp -R /usr/local/open-audit /usr/local/open-audit_backup

If the omkd daemon is installed, stop the daemon and backup the /usr/local/omk directory.

service stop omkd

cp -R /usr/local/omk /usr/local/omk_backup  

Copy the Open-AudIT tarball to the server (OAE-Linux-x86_64-1.0.4.tar.gz).

You may need to use SCP or FTP to get the file onto the server.

The file will now likely be in the users home directory.

Change into the /usr/local directory.

cd /usr/local

 Untar the file.

tar xvf ~/OAE-Linux-x86_64-1.0.4.tar.gz

 Fix the file ownership and permissions.

chown -R root:root omk
 
chmod -R 775 omk

chown -R root:www-data /usr/local/open-audit

chmod -R 770 /usr/local/open-audit

chmod -R 777 /usr/local/open-audit/code_igniter/application/views/lang/

chmod 770 /usr/local/open-audit/other/audit_linux.sh

chmod 770 /usr/local/open-audit/other/audit_subnet.sh

chmod 660 /usr/local/open-audit/other/open-audit.log

 If the omkd daemon is not installed, install the daemon. 

cp install/omkd.init.d /etc/init.d/omkd

chkconfig --add omkd

Copy the config files.

cp install/users.dat conf/

cp install/oae_reports.json conf/

cp install/opCommon.nmis conf/

Edit the config files.

nano conf/opCommon.nmis

Edit the "openauditenterprise" section and insert the actual ip address of the server (not 127.0.0.1 or localhost) in to the oae_server variable (along with http:// and don't forget the trailing /). If you have Open-AudIT installed into a sub directory in your web root, be sure to add that to the end of the oae_server variable above. For our virtual appliance it would be http://<SERVER_IP>/open-audit/

The email section is described in the Open-AudIT Enterprise - Configuration Guide document.

If the omkd daemon is installed, merge the config files with those from your backed up directory. This should be done manually as new configuration items may have been added to the new file. If any items are not as per the defaults in the backed up file, copy them across.

If the omkd daemon is not installed, create the nmis user.

useradd nmis

Start the daemon.

service omkd start

 

Test the Daemon

You should now be able to point a web browser at http://SERVER:4082/omk/oae

 

 

 

 

  • No labels