Welcome to docs.opsview.com

Solaris Builds

This is a guide to requirements and tasks involved in setting up Opsview on a Solaris server and is work in progress. The version of Opsview being used is 2.12.

Basic information

This document is based on Solaris 10 x86, but should be equally applicable to Solaris 10 sparc and is meant as a reference guide.

This test was completed on Solaris x86 0807, cluster SUNWCuser (End User)

Known Issues

No known issues.

Extra Software

Sun Packages

Installation DVD packages

The following additional packages are required from the OS installation DVD:

SUNWwgetr
SUNWwgetu
SUNWarc
SUNWarcr
SUNWbinutils
SUNWgcc
SUNWhea
SUNWapch2r
SUNWapch2u
SUNWlibmr
SUNWlibm
SUNWperl-xml-parser
SUNWopensp
SUNWopenjade
SUNWgnome-common-devel
SUNWsprot
SUNWgmake
SUNWgccruntime
SUNWgtar
SUNWlexpt
SUNWlexptS
SUNWjpgS
SUNWpngS
SUNWgpch
SUNWimagick
SUNWopenssl-include

Companion DVD Packages

The following additional packages are required from the OS Companion DVD:

SFWgcmn
SFWgcc2l
SFWgd
SFWnpbm
SFWrsync
SFWncur
SFWsudo
SFWcoreu

Necessary Configuration Steps

Update the linking path configuration

crle -l /usr/sfw/lib:/opt/sfw/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/mysql/lib/mysql:/usr/apache2/lib:/usr/local/apr/lib:/lib:/usr/lib

Create some symlinks to name binaries as expected

mkdir -p /usr/local/bin
ln -s /usr/sfw/bin/gtar /usr/local/bin/tar
ln -s /usr/sfw/bin/gmake /usr/local/bin/make
ln -s /usr/sfw/bin/gm4 /usr/local/bin/m4
ln -s /usr/bin/gpatch /usr/local/bin/patch

and reboot the server (to allow the manifest files to be installed into SMF correctly).

Sunfreeware Packages

The following packages should be downloaded and installed from [http://www.sunfreeware.com/indexintel10.html Sunfreeware].

cairo-1.4.10
libiconv-1.11
libintl-3.4.0
libpng-1.2.25
mysql-5.0.51
openssl-0.9.8f
rrdtool-1.2.19
m4-1.4.10
autoconf-2.60
automake-1.10.1

If developing on Solaris, the following packages are also required

subversion-1.4.3
neon-0.25.5
db-4.2.52

Do not install perl from Sunfreeware - the following is required to use the Sun provided version

sudo ln -s /usr/bin/perl /usr/local/bin/perl

Hand Compiled

Install the ALT packages from the download site, or alternativly build by hand as follows:

Download, setup and install the following software in the order given * [http://sourceforge.net/project/platformdownload.php?group_id=87941 libmcrypt] * [http://oss.oetiker.ch/mrtg/pub/?M=D MRTG] * [http://www.switch.ch/misc/leinen/snmp/perl/dist SNMP_Session]

Use the following when running configure for MHash, MCrypt and libmcrypt:

$ LDFLAGS="-L/usr/local/lib" ./configure --disable-static
$ make 
$ sudo make install

Use the following for compiling MRTG:

$ ./configure --prefix=/usr/local --with-gd-lib=/opt/sfw/lib --with-gd-inc=/opt/sfw/include
$ make
$ sudo make install

To install SNMP_Session, use:

$ tar zvxf SNMP_Session-1.11.tar.gz
$ cd SNMP_Session-1.11
$ perlgcc Makefile.PL
$ make
$ sudo make install
Installation

Apache2

Run these commands

sudo usermod -G nagios nobody
sudo cp /etc/apache2/httpd-std.conf /etc/apache2/httpd.conf
sudo perl -p -i -e 's{^Group #-1}{Group nogroup}' /etc/apache2/httpd.conf
sudo /usr/sbin/svcadm enable apache2

Mysql

Run these commands to complete the install of MySQL

sudo /usr/sbin/groupadd mysql
sudo /usr/sbin/useradd -d /var/log/mysql -m -s /bin/false -g mysql mysql
sudo /usr/local/doc/mysql/scripts/mysql_install_db
sudo chown -R mysql:mysql /usr/local/mysql/var
sudo cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
sudo ln -s /etc/init.d/mysqld /etc/rc3.d/S20mysqld
sudo ln -s /etc/init.d/mysqld /etc/rc0.d/K80mysqld
sudo ln -s /etc/init.d/mysqld /etc/rc1.d/K80mysqld
sudo ln -s /etc/init.d/mysqld /etc/rc2.d/K80mysqld
sudo ln -s /etc/init.d/mysqld /etc/rcS.d/K80mysqld
sudo /etc/init.d/mysqld start

Opsview

To complete the installation, follow the setting up of a development server instructions.