Welcome to docs.opsview.com

Porting

This page will provide a general outline of the steps required to get Nagios running on an unsupported server. The steps given here will not be for a specific OS but should help to get Opsview installed.

Initial installation

Follow the development porting guide to create the nagios user and group, download and extract the tarballs (or better still, checkout the subversion repository so any changes you make can be more easily checked) and set up the user profile.

Run the check_reqs build script and note any missing requirements.

Install those requirements on your machine and run check_reqs. If missings are still reported but are installed on your server

  • amend opsview-core-{version}/bin/profile to include the extra paths. NOTE add in a section similar to Solaris (SunOS) rather than amending the generic configuration
  • amend check_reqs to include extra library and include paths. NOTE add in a section similar to Solaris (SunOS) rather than amending the generic configuration

When check_reqs build passes then build opsview-base. If there are any build issues then amend the Makefile to include specific builds for your OS (again, similar to SunOS).

After opsview-base, opsview-perl should be compiled - if 'make setup' enters an infinite loop then <CTRL>-C, run

perl -MCPAN -e 'shell'

, set up CPAN by hand and save the configuration. The extra configuration within the cpan session should be (copy and paste)

o conf prerequisites_policy follow
o conf scan_cache never
o conf build_cache 20
o conf urllist pop
o conf urllist pop
o conf urllist pop
o conf urllist pop
o conf urllist pop
o conf urllist pop
o conf urllist push http://cpan.opsview.org/current
o conf makepl_arg ' PREFIX=/usr/local/nagios/perl LIB=/usr/local/nagios/perl/lib INSTALLDIRS=site INSTALLSITEMAN1DIR=/usr/local/nagios/perl/man1 INSTALLSITEMAN3DIR=/usr/local/nagios/perl/man3'
o conf mbuild_arg ''
o conf mbuild_install_arg ''
o conf mbuild_install_build_command ./Build
o conf mbuildpl_arg ' --install_base /usr/local/nagios/perl --install_path lib=/usr/local/nagios/perl/lib'
o conf ncftpget ''
o conf commit
o conf
exit

then 'make install' can be run.

Both opsview-core and opsview-web should compile and install without OS specific changes.

When all changes have been made, and if running out of an svn repository, run 'svn diff' and raise a trac item for including in the source code.