Installation Options for 7.1.1

Installation options

Remote database installation

GroundWork Monitor can be installed on two servers, with the database on a separate server for performance and manageability reasons. You have to install the database first (using a copy of the GroundWork binary installer) on a separate server. Full instructions for installing the remote database server are here.

Disk layout

The following recommendations apply to GroundWork servers, both the all-in-one installations and split systems with front-end and remote database servers.

First, decide which disk the GroundWork Monitor install will reside on. It will be placed in the /usr/local/groundwork/ directory, which by default will usually reside on the system disk. If you wish to relocate the installation to a different drive, that is most easily done by setup before the installation proper. Your choices are:

  1. Create the /usr/local/groundwork/ directory and mount some disk partition on that directory (recommended). After the mount, check the ownership and permissions of the mount point:
    drwxr-xr-x 2 root root 4096 Feb  5 19:45 /usr/local/groundwork

    The installer will adjust the ownership of the root of the mounted partition as needed during the installation process.

  2. Use a bind mount. For example, if you have a large partition on /opt, you can make /usr/local/groundwork point there with these commands:
    $ mkdir /opt/ulg
    $ mkdir /usr/local/groundwork
    $ mount -o bind /opt/ulg /usr/local/groundwork

    You will now see this reflected when running the mount command:

    $ mount | grep groundwork
    /opt/ulg on /usr/local/groundwork type none (rw,bind)

    Now do the normal GroundWork installation. The files will be in the /opt space, but directly accessible at /usr/local/groundwork. You need not create the nagios user or group beforehand; the installer will do so as needed, and change the ownership of the target directory accordingly.
    You will want this to persist across reboots. Edit /etc/fstab, making the indicated change:

    # vi /etc/fstab

    Add the line:

    /opt/ulg              /usr/local/groundwork                 none    bind    0 0
  3. Don't create the /usr/local/groundwork/ directory. The GroundWork installer will create it and set its ownership and permissions as needed, on whatever disk/partition the /usr/local/ directory resides on.

Note that creating the usr/local/groundwork directory as a symlink to some other location is known to have issues. This installation technique is not supported and should not be done. At this time, the installer does not detect this and an install will appear to successfully complete, but there are several features of the product that will not operate properly (such as use of Nagios profiles) as well as certain security features being bypassed.

Installation Methods

The installer package supports 3 modes: GUI, text, and unattended. All three require root access to the system where you install the GroundWork software.
The default method is GUI if an X server is running; otherwise, text mode will be used. GroundWork does not recommend running the X server in a production deployment, due to the unnecessary overhead.

GUI Install

On a system with X server running, simply double-click on the run file. Alternatively, go to the command shell and execute the downloaded file:

Text Based Install

From a command shell, execute the binary with the text-mode installation selected:

./ --mode text
Unattended Install

From a command shell, execute the binary with the unattended-mode installation selected:

./ --mode unattended

This will perform an unattended installation that will not prompt the user for any information. This method is not recommended for upgrades.

Unattended Mode Constraints
If you run the installer using the command above, the installation will fail because it tries to install the PostgreSQL database without a password for the postgres user. An installation like that is inherently insecure, and is not supported. For an unattended install, you must use the "--postgres_password password" option, either on the command line or in an option file as described below.

Also, an unattended install will reference a local database only.

Passing the "--optionfile optionfile" command line option lets you specify installation options in a separate file. The option file should contain one line per option using the format key=value. You can use any of the options accepted by the installer. For information on valid options, execute the binary with the --help switch. For example, to use a PostgreSQL password specified in the options, you could use:

./ --mode unattended --optionfile gwinstall.ini

where the gwinstall.ini file contains: