Versions Compared

Key

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

...

...

...

...

...

...

Prerequisites

The individual performing this installation has some Linux experience.

...

Code Block
languagebash
cd omk

 

Install the Daemon (if not installed)

 

Copy the daemon startup script.

 

Code Block
languagebash
cp /usr/local/omk/install/omkd.init.d /etc/init.d/omkd

 

Edit the start up script 

 

Section
Column
width40%

for Debian / Ubuntu

You need to comment out the lines (nano /etc/init.d/omkd)

Code Block
languagebash
. /etc/init.d/functions     # RedHat/CentOS only
 
lockfile=/var/lock/subsys/$prog     # RedHat/CentOS only

        killproc $prog           # Redhat/CentOS only

and uncomment (remove the # from the front of the line) the lines below them

Code Block
languagebash
# . /lib/lsb/init-functions # Debian/Ubuntu only
 
# lockfile=/var/lock/$prog           # Debian/Ubuntu only
 
        #pkill $prog              # Debian/Ubuntu only 
Column
width40%

for RedHat / CentOS - nothing required.

 

Add the daemon

 

Section
Column
width40%

For Debian / Ubuntu

Code Block
languagebash
update-rc.d omkd start 20 2 3 4 5 . stop 20 0 1 6 . 
Column
width40%

For RedHat / CentOS

Code Block
languagebash
chkconfig --add omkd 

...

Code Block
languagebash
service omkd start

Test the Daemon

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

The default credentials for the Dashboard are user: nmis, password: nm1888.

Edit the Open-AudIT scripts (if using a web root subdirectory)

If you have your web root in a subdirectory (as per the Opmantek virtual appliance), you will need to edit the "url" variable in the various script files. These files can be found in /usr/local/open-audit/other/ The files you will need to edit all begin with audit_ They include audit_linux.sh, audit_subnet.sh, audit_windows.vbs, etc, etc. The URL variable can usually be found at the top of the file.

Copy new web files

If your Open-AudIT install is into a subdirectory of your webroot, be sure to add that to the end of the destination of the cp command below.

...

Code Block
languagebash
\cp -Rf /usr/local/open-audit/www/* /var/www/html/open-audit/

Fix the file permissions

For Debian / Ubuntu

Code Block
languagebash
chmod -R 775 /var/www/

...

Code Block
languagebash
chmod -R 775 /var/www/html/open-audit

Restore old files (if required)

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

...