Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Fix the file ownership and permissions.

 

Code Block
languagebash
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

Change into the omk directory

 

Code Block
languagebash
cd omk

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

 

Code Block
languagebash
cp install/omkd.init.d /etc/init.d/omkd

chkconfig --add omkd

 

 

Copy the config files. 

Code Block
languagebash
cp install/users.dat conf/

cp install/oae_reports.json conf/

cp install/opCommon.nmis conf/

...

 

Edit the config files.

Code Block
languagebash
nano conf/opCommon.nmis

...

Code Block
languagebash
useradd nmis

If the omkd daemon is not installed, configure and copy the apache proxy file.

Edit the file /usr/local/omk/install/04omk-proxy.conf and insert the ip address of the server into the relevant "location" sections (replacing <SERVER>). Make sure you don't use 127.0.0.1.

Code Block
languagebash
nano /usr/local/omk/install/04omk-proxy.conf

Copy the apache proxy file to the correct location and restart apache.

For Debian / Ubuntu:

Code Block
languagebash
cp /usr/local/omk/install/04omk-proxy.conf /etc/apache2/conf.d/

service apache2 restart

 For RedHat / CentOS:

Code Block
languagebash
cp /usr/local/omk/install/04omk-proxy.conf /etc/httpd/conf.d/

service httpd restart

Start the daemon.

Code Block
languagebash
service omkd start

Test the Daemon

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

The default credentials are user: nmis, password: nm1888.

Restore old files (if required)

Copy any attachment files from your old to the new install.

Code Block
languagebash
cp /usr/local/open-audit_backup/code_igniter/application/attachments/* /usr/local/open-audit/code_igniter/application/attachments/

If you have any Groups or Report files saved in /usr/local/open-audit_backup/code_igniter/application/controllers/(groups or reports)/ that have been custom written, you may wish to copy them to the new install. If they are already activated in the database, there should be no need.

Log in to Open-AudIT at http://SERVER/index.php/main/list_groups and go to Help -> About and perform the database upgrade.

Check your Groups and Reports are functional. If you have some standard Groups and Reports activated, you may wish to deactivate them (Menu -> Admin -> Groups -> List Groups -> delete icon) and activate new ones (Menu -> Admin -> Groups -> Activate Group). Most Group and Report definitions have been updated. Do not deactivate Network Groups. These are created dynamically and if you deactivate them, you will either have to wait until a new computer is audited on the subnet in question (and hence the Group is recreated) or manually input a Group definition.

Ensure you copy the new audit scripts to any hosts that use them - these are usually updated.

Enjoy Open-AudIT v1.0.4 (smile)