Installation on an Oracle Application Server 10g on a RHEL 4 platform

Tim McArthur (tim.mcarthur AT fivium DOT co DOT uk) had written a little document of how he did it to install Monitorix under Oracle Application Server 10g on a Red Hat Enterprise Linux 4 platform. The following is a copy and adaptation (under permission) of his document:

Required packages

See the Downloads section.

Optionally you may need to install the Time::HiRes Perl module and you can download it either, from the Dag Wieers repository for perl-Time-HiRes or directly from Perl CPAN archive with:

perl -MCPAN -e 'install Time::HiRes'
      
Download and extract the latest Monitorix package:
wget http://www.monitorix.org/monitorix-1.2.0.tar.gz  && tar -zxvf monitorix-1.2.0.tar.gz
      

Installation

Edit the install.sh file as follows:
add after line 46:
	echo "  6 - OAS on RHEL4"
      
Add this section after line 110:
	6)
		SBIN="/usr/sbin"
		ETC="/etc"
		INIT="/etc/init.d"
		LIB="/var/lib"
		DOC="/usr/share/doc"
		HTDOCS="<OAS server root>"      
		CGIBIN="<$ORACLE_BASE>/product/10.1.2/oas/Apache/Apache/cgi-bin"
		PORTS="${OS}-Generic"
		show_paths
		OK=1
	;;
      
The $ORACLE_BASE variable I use is /u01/app/oracle, but it may vary. The OAS server root value for the servers I use is /u01/www/<server name>, again this may vary.

Save the install.sh file and run selecting the option 6 for the OS install.

./install.sh
      

Finalization

Edit the file /etc/monitorix.conf and change the %BASE_WWW variable to the same as the HTDOCS value above.

Use service monitorix.sh start or /etc/init.d/monitorix.sh start to start the service.