Welcome to docs.opsview.com

Building the RPM's

Rebuilding from SRPM's

Not all variations of architectures are available for building Opsview - for this reason users with ppc or sparc processors will need to rebuild Opsview for themselves.

This can be done doing the following:

  1. Ensure rpmforge repos are enabled - see https://rpmrepo.org/RPMforge/Using
  2. Ensure the groups nagcmd and nagios exist - groupadd_nagios}
  3. Ensure the user nagios exists - useradd_-g_nagios_-g_nagcmd_nagios}
  4. Install 'rpmbuild' - i.e. yum_install_rpm-build}
  5. Obtain the source rpm's from the download web site for base, perl, core and web
  6. Run the following commands as root
mkdir $HOME/opsview_tmp
rpmbuild --buildroot=$HOME/opsview_tmp --rebuild opsview-base-<version>.src.rpm
rpmbuild --buildroot=$HOME/opsview_tmp --rebuild opsview-perl-<version>.src.rpm
  1. If necessary, install any missing dependencies and rerun the rpmbuild steps

opsview-core and opsview-web do not need to be rebuild as they do not contain compiled code (only perl code and scripts) do rpm's with a matching version can be downloaded from the download site.

When completed, RPMs should be somewhere under /usr/src/redhat/RPMS/

Building from subversion/tarballs

To build directly from source (to apply your own patches to Nagios for example)

If working from SVN

  1. checkout the source repository
  2. cd into the top level directory
  3. run make tar - this will create a tarball for opsview-base, opsview-core and opsview-web

You can now use rpmbuild against the tarfiles like this

  1. run sudo rpmbuild –define “distribution <dist>” –clean –ta opsview-base*.tar.gz to create the rpm's

After the initial build is verified as working, you can then apply your own patches and rebuild as necessary. If using tarfiles, extract, patch and recreate them as needed before rerunning the rpmbuild command.