OpsView 3.0.2 CentOS 5.2

De Wiki de Romain RUDIGER
Aller à : navigation, rechercher
Language: English  • français

Contributors: Romain RÜDIGER.

Period : 03/09.

This document is my installation notes of Opsview 3.0.2 under CentOS 5.2.

Installation of CentOS

During the install process, do not select any package.

Disk partitions:

  • /var ext3 >15Go MySQL
  • /usr/local ext3 >15Go Opsview
  • / ext3 >5Go Bootable
  • swap swap 2Go

Installation of MySQL, Apache and PHP

yum install mysql-server.x86_64 mysql-devel
chkconfig mysqld on
yum install httpd-manual
chkconfig httpd on
yum install php-cli
yum install php

Installation of some libraries

yum groupinstall "Server Configuration Tools"
yum groupinstall "Web Server"
yum groupinstall "MySQL Database"
yum groupinstall "Network Servers"
yum groupinstall "Legacy Network Servers"
yum groupinstall "Development Tools"
yum groupinstall "X Software Development"
yum groupinstall "Legacy Software Development"
yum groupinstall "Administration Tools"
yum groupinstall "System Tools"

Installation of rpmforge package for specifics libraries, get the last package at http://dag.wieers.com/rpm/packages/rpmforge-release/:

wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Installation of specifics libraries:

yum install libmcrypt directfb cairo perl-rrdtool libtool-ltdl mrtg net-snmp-perl net-snmp-utils perl-XML-LibXML-Common perl-XML-SAX rrdtool ImageMagick netpbm-progs gd-progs

Installation of Java

Installation of libraries to compile the Java packet:

yum install -y rpm-build gcc gcc-c++ redhat-rpm-config jpackage-utils

With the user nagios, put in the file ~/.rpmmacros these lines:

  • %_topdir /home/nagios/rpmbuild
  • %_tmppath %{_topdir}/tmp

Now create the default rpmbuild directories tree:

mkdir -p ~/rpmbuild/{SOURCES,SRPMS,SPECS,RPMS,tmp,BUILD}

We must get these packets:

Well done, now launch the installation process:

yum --nogpgcheck localinstall /home/nagios/rpmbuild/RPMS/i586/java-1.6.0-sun-

You can check that Java work by type:

java -version

Installation of Opsview 3.0.2

Download all Opsview packages from http://downloads.opsview.org/ and exec:

rpm -Uvh opsview- opsview-core- opsview-perl- opsview-web- opsview-base- opsview-reports-

Configuration of MySQL

Set boot time start and change the root password of the MySql server:

chkconfig mysqld on
service mysqld start
echo "update mysql.user set password=PASSWORD('athena18') where user='root';" | mysql -uroot

Here we have set the root password to athena18.

You need to edit the Opsview configuration file /usr/local/nagios/etc/opsview.conf to change the default passwords.

To create users, rights, databases and tables, type:

/usr/local/nagios/bin/db_mysql -u root -pathena18
/usr/local/nagios/bin/db_opsview db_install
/usr/local/nagios/bin/db_runtime db_install
/usr/local/nagios/bin/db_odw db_install
/usr/local/nagios/bin/db_reports db_install