Installing Supervisor
Installing Supervisor in Supervisor Installation and Configuration Guide.
Installing Supervisor#
Follow the steps below to install the Supervisor.
1. Navigate to the directory below:
/<Agent home directory>/Supervisor/
2. Follow the process below for installing the Supervisor.
The installation can be done in two modes.
- Users with root access
- Users with non-root access
a. In root user installation mode,
Execute the below command to install Supervisor.
./install.sh <non_root_username> <non_root_groupname>
For example:
./install.sh appsone staff
b. In non-root user mode, only the installation will be done, and the Supervisor will not be started upon system reboot. Execute the below command.
./install.sh
3. Navigate to the directory below:
/<Agent home directory>/Supervisor/supervisor/
4. Start the Supervisor using the following command.
./supervisor.sh start
5. To stop the Supervisor, execute the following command.
./supervisor.sh stop
6. To check whether the Supervisor is running or not, execute the following command:
./supervisor.sh status
Remote Collection of Forensics#
The access permission to install the Supervisor in the DB servers can be restricted. It may also happen The access permission to install the Supervisor in the customer environment is restricted to some application servers.
If the Supervisor cannot be present on the target server, the Supervisor Controller present on the HEAL server triggers the forensic and heal actions and collects the output for the same. Forensic and healing actions are triggered for any event raised in HEAL.
Supervisor Controller fires only shell scripts. This is recommended only when clients restrict the Supervisor from being available on the target server.
This feature is supported on the following OS:
Solaris 10 & 11, AIX 7.1 & 7.2, RHEL 6.x, 7.x, 8.x and 9.x and HP-UX 11.ui.
The supervisor controller present on the HEAL server connects to the target server using SSH, executes the required forensics script, and updates the information in HEAL.
Prerequisites#
Ensure the following prerequisites are met:
1. Provide the username and password while creating the host instances. Provide or update the username and password for the instances via Control Center. The Supervisor Controller requires these details to collect the forensic data remotely from the target server.
2. The supervisor controller drops the action if SSH connectivity is not available or the username & password are incorrect or empty.
3. Do not create a Supervisor ID for the target server.
4. For an existing setup, if you require remote forensics collection using the Supervisor Controller, delete the respective Supervisor entry from the supervisor_details table. Make the host address an invalid IP address.
Internally, there is a master entry for Supervisor with a mode of REMOTE for remote forensic collection.
Supervisor Auto Restart Post Server Reboot#
Follow the steps below post-installation to auto-restart the Supervisor post-server reboot.
For RHEL#
1. Switch to the root user on the target box where the Supervisor is installed.
2. Navigate to the folder below.
/etc/init.d
3. Execute the below commands to create a file named Supervisor.
touch <file name>
or
vi <file name>
or
vim <file name>
For example:
touch supervisor
or
vi supervisor
or
vim supervisor
4. Add the following content to the file.
#!/bin/sh
#chkconfig: - 99 10
. /etc/rc.d/init.d/functions
chmod +x /home/heal/Agents/Supervisor/supervisor.sh
su <HEAL user> -c "sh /home/user/Agents/Supervisor/supervisor.sh start"
5. Execute the following commands.
chkconfig --add supervisor
chkconfig --level 2345 supervisor on (Configure these levels as per your requirement)
For AIX#
1. Navigate to the folder below:
/etc/inittab
2. Add the below line in:
supervisor:2:once:su - <HEAL user> "-c /<agent home directory>/Supervisor/supervisor.sh start" > /dev/null 2>&1
For Solaris#
1. Navigate to the folder below.
/etc/init.d
2. Execute the commands below to create a file named Supervisor.
touch <module name>
or
vi <module name>
For example:
touch supervisor
or
vi supervisor
3. Add the following content to the file.
#!/bin/sh
chmod +x /<agent home directory>/Supervisor/supervisor.sh
su <HEAL user> -c "sh /<agent home directory>/Supervisor/supervisor.sh $1"
4. Change the file permissions:
chmod 0744 /etc/init.d/supervisor
chown root:sys /etc/init.d/supervisor
5. Check system run level with “who -r.”
6. Assuming the runlevel is 3, create hard links in rc3.d as shown below. Create in respective RC directory as per the runlevel obtained in step 5)
ln supervisor /etc/rc3.d/S99supervisor
ln supervisor /etc/rc3.d/K99supervisor
For HP-UX#
1. Navigate to the directory below (change the directory in the script as per env):
/sbin/init.d/
2. Execute the commands below to create a file named Supervisor.
touch supervisor
3. Create the below script in the supervisor:
#!/usr/bin/sh
export PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/ccs/bin
args=$1
if [[ "$args" == "start" ]]
then
cd /<agent home directory>/Supervisor/Supervisor_HPUX_ia64_64-bit_2.1.0.12 ;
/usr/local/bin/su <HEAL user> -c "/usr/bin/sh supervisor.sh start"
else
cd /<agent home directory>/Supervisor/Supervisor_HPUX_ia64_64-bit_2.1.0.12 ;
/usr/local/bin/su <HEAL user> c "/usr/bin/sh supervisor.sh stop"
fi
4. Change the permission of the supervisor.sh file:
chmod +x supervisor.sh
5. Navigate to the folder below:
/sbin/init.d/
6. Give 555 permission for the supervisor file.
#chmod 555 /sbin/init.d/supervisor
7. Create the symlink as below.
ln -s /sbin/init.d/supervisor /sbin/rc3.d/S999supervisor
ln -s /sbin/init.d/swpervisor /sbin/rc3.d/K999supervisor