Friday, December 25, 2009

How to: OpManager 8 Free Edition installation on RHEL 5

I. OpManager Installation

1. Download OpManager 8 http://www.manageengine.com/products/opmanager/download.html .

[root@localhost]# ls
ManageEngine_OpManager.bin

[root@localhost]# chmod u+x *
[root@localhost]# ls –l
-rwxr-xr-x root root 5723539 Dec 7 4:24 ManageEngine_OpManager.bin
[root@localhost]# ./ManageEngine_OpManager.bin

InstallShield Wizard
Initializing InstallShield Wizard…
Searching for Java(tm) Virtual Machine….
Preparing Java(tm) Virtual Machine…
………………………….
……………………………..
2. The InstallShield Wizard will install “ManageEngine Opmanager 8” windows open on your computer. To continue, then click next.
3. Choose “I accept the terms of the license agreement.”
4. Choose the Opmanager Edition (Free Edition).
5. Select your language. (By default English)
6. Click Next to install “ManageEngine Opmanager 8” in this directory.
Default directory name: /opt/AdventNet/ME/Opmanager
7. Select the Web Server Port Number. Default web server port number is 80.
8. Details of Installation and click Next.
9. Wait for installing ManageEngine Opmanager.
10. Cleck “NO” for a newer keytool file.
11. Extracing Files. Wait for a minutes.
12. Select the Server Name.
13. Information Box for confirm.
14. The InstallShield Wizard has successfully installed ManageEngine Opmanager.

II. OpManager 8 configuration

1. Start OpManager server and see ERROR.
[root@localhost]# cd /opt/AdventNet/ME/OpManager/bin/
[root@opmanager bin]# ./StartOpManagerServer.sh
Java Home /opt/AdventNet/ME/OpManager/jre
cp: cannot stat `/opt/AdventNet/ME/OpManager/apache/ssl/backup/ssl.conf’: No such file or directory
The File: /opt/AdventNet/ME/OpManager/apache/ssl/ssl.conf does not exist
inside addon check
….more….
Created table SnmpInterface
Created table TLNode
Created table TLInterface
Created table TOPOUSERPROPS
Created table ALERTUSERPROPS
….more….
This OpManager has been licensed to Evaluation User.
Starting AdventNet ManageEngine “Primary” Server Modules, please wait
….more….
Process : StartTelnetClient [ Started ]
Process : OpManagerStatusProcess [ Started ]
Process : NetFlowProcess [ Started ]
Process : AuthMgr [ Started ]
Process : DataMgmtRPI [ Started ]
….more….
Verifying connection with web server …
Failed to establish connection with web server. Gracefully shutting down OpManager.
Trying to Shutdown OpManager
Schedulers Stopped successfully
All Shut Down Observers Notified
Process : NmsSAServerFE [ Stopped ]
Process : StartTelnetClientFE [ Stopped ]
Process : ExampleFE [ Stopped ]
Process : UserConfigProcessFE [ Stopped ]
….more….
All Database connections disconnected
OpManager Successfully Shut Down

2. Goto apache path and start service for fix error shared libraries: libaprutil-0.so.0.
[root@opmanager bin]# cd /opt/AdventNet/ME/OpManager/apache/bin/
[root@opmanager bin]# ls
apachectl backup httpd

[root@opmanager bin]#./apachectl start

/opt/AdventNet/ME/OpManager/apache/bin/httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory
./apachectl start: httpd could not be started

[root@opmanager bin]# ln -s /opt/AdventNet/ME/OpManager/apache/lib/libaprutil-0.so.0 /usr/lib/libaprutil-0.so.0

3. Fix error libraries: libdb-3.2.so
[root@opmanager bin]# ./apachectl start
/opt/AdventNet/ME/OpManager/apache/bin/httpd: error while loading shared libraries: libdb-3.2.so: cannot open shared object file: No such file or directory
./apachectl start: httpd could not be started

[root@opmanager bin]# ln -s /opt/AdventNet/ME/OpManager/lib/backup/libdb-3.2.so /usr/lib/libdb-3.2.so

4. Fix error libraries: libapr-0.so.0
[root@opmanager bin]# ./apachectl start
/opt/AdventNet/ME/OpManager/apache/bin/httpd: error while loading shared libraries: libapr-0.so.0: cannot open shared object file: No such file or directory
./apachectl start: httpd could not be started

[root@opmanager bin]# ln -s /opt/AdventNet/ME/OpManager/apache/lib/libapr-0.so.0 /usr/lib/libapr-0.so.0

5. Fix error document config file/home/kernel/satya/installed_apache/conf/httpd.conf.
[root@opmanager bin]# ./apachectl start

httpd: could not open document config file /home/kernel/satya/installed_apache/conf/httpd.conf
./apachectl start: httpd could not be started

[root@opmanager bin]# mkdir -p /home/kernel/satya/installed_apache/conf/
[root@opmanager bin]# ln -s /opt/AdventNet/ME/OpManager/apache/conf/httpd.conf /home/kernel/satya/installed_apache/conf/httpd.conf

[root@opmanager bin]# ./apachectl start
./apachectl start: httpd started

6. Stop httpd service for system.

[root@opmanager bin]# service httpd stop
Stopping httpd: [ OK ]
[root@opmanager bin]# chkconfig httpd off
[root@opmanager bin]#

7. Start Opmanager
[root@opmanager bin]# cd /opt/AdventNet/ME/OpManager/bin/
[root@opmanager bin]# ./StartOpManagerServer.sh

Java Home /opt/AdventNet/ME/OpManager/jre
cp: cannot stat `/opt/AdventNet/ME/OpManager/apache/ssl/backup/ssl.conf’: No such file or directory
The File: /opt/AdventNet/ME/OpManager/apache/ssl/ssl.conf does not exist
inside addon check

This OpManager has been licensed to Evaluation User.
Starting AdventNet ManageEngine “Primary” Server Modules, please wait

Process : StartTelnetClient [ Started ]
Process : OpManagerStatusProcess [ Started ]
Process : AuthMgr [ Started ]
Process : NetFlowProcess [ Started ]
Process : DataMgmtRPI [ Started ]
Process : NCMProcess [ Started ]
Process : NmsPolicyMgr [ Started ]
Process : NMSMServer [ Started ]
Process : OpManagerRunApacheExeModule [ Started ]
Process : NmsAuthManager [ Started ]
Process : UserConfigProcess [ Started ]
Process : DBServer [ Started ]
Process : NmsAuthenticationManager [ Started ]
Process : CLIFactoryBinder [ Started ]
Process : SetSecurityProperty [ Started ]
Process : MapServerBE [ Started ]
Process : NMSSAServer [ Started ]
Process : EventMgr [ Started ]
Process : RunJSPModule [ Started ]
Process : Collector [ Started ]
Process : OpManagerProcess [ Started ]
Process : MServerFE [ Started ]
Process : PollFE [ Started ]
Process : NmsSAServerFE [ Started ]
Process : EventFE [ Started ]
Process : ExampleFE [ Started ]
Process : SAServerFE [ Started ]
Process : AuthenticationManagerFE [ Started ]
Process : MapFE [ Started ]
Process : PolicyFE [ Started ]
Process : AlertFE [ Started ]
Process : UserConfigProcessFE [ Started ]
Process : NmsMainFE [ Started ]
Process : AuthorizationManagerFE [ Started ]
Process : StartTelnetClientFE [ Started ]
Process : TopoFE [ Started ]

Verifying connection with web server … verified
OpManager modules started successfully

8. Connect OpManager server
Please connect your client to the web server on port: 80 as http://127.0.0.1:80
9. Shutdown OpManager
[root@opmanager bin]# ./ShutDownOpManager.sh
10. OpManager Port Change
[root@opmanager bin]# ./ChangeWebServerPort.bin 80 9095
80 port means your old port, 9095 port is your new port

III. OpManager Auto Start Setup

1. Opmanager.txt file for starts after server reboot

#!/bin/bash
#
# Startup script for the pmagent
#
# chkconfig: 345 99 02
# description: Run the OpManager 8 program
INITLOG_ARGS=""
prog="opmanager"
progname="AdventNet ManageEngine OpManager"
RETVAL=0
# Edit the following to indicate the 'bin' directory for your installation
MDIR=/opt/AdventNet/ME/OpManager/bin
PRG=$MDIR/opmanager
if [ ! -d "$MDIR" ]
then
echo "Invalid directory $MDIR"
exit
fi
start()
{
mv -f /var/log/opmanager.log /var/log/opmanager.log
echo "Starting $progname"
cd $MDIR
nohup sh StartOpManagerServer.sh >/var/log/opmanager.log 2>& &
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/OpManager
}
stop()
{
echo "Stopping $progname"
cd $MDIR
sh ShutDownOpManager.sh admin admin >>/var/log/opmanager.log 2>&
}
case "quot; in
start)
start
;;
stop)
stop
;;
*)
echo "Usage: $prog {start|stop}"
exit
;;
esac
exit $RETVAL

2. Change text file name
Copy the attached opmanager.txt file to /etc/init.d directory as opmanager

mv /etc/init.d/opmanager.txt /etc/init.d/opmanager

3. Edit the MDIR variable

Edit the MDIR variable in this file which should point to the bin folder of OpManager Installation directory.
Typically, the default installation folder on a Linux box will be /opt/AdventNet/ME/OpManager. Hence the value for MDIR will be

MDIR=/opt/AdventNet/ME/OpManager/bin

4. Provide executable permissions for this script using
chmod 755 /etc/init.d/opmanager

5. Use chkconfig command to add OpManager as a service
#chkconfig --add opmanager
#dos2unix opmanager

2 comments:

Anonymous said...

Il semble que vous soyez un expert dans ce domaine, vos remarques sont tres interessantes, merci.

- Daniel

Anonymous said...

Hi I am confused that I have installed OpManager_Central-8 on REDHAT-5.5 and also installed OpManager-Probe-8 on same system.
But discover divised is not appearing and Prod system get massage URL block.
Is there any way to run services.

Regards,
Syed Shabuddin