TrueSight Health Check Tool
The TrueSight Health Check Tool checks for the following:
- If your environment is optimized for performance and stability.
- If your environment has upgrade impact issues.
When you run the tool, it generates an HTML report that lists the actual and recommended values for parameters such as OS settings, database, logs, configuration files, and so on.
You can also schedule the tool to automatically run periodically.
To download the TrueSight Health Check Tool
Download the tool from this TrueSight Presentation Server or from the knowledge article https://communities.bmc.com/docs/DOC-122750 .
To run the TrueSight Health Check Tool
- As the user who installed TrueSight Operations Management, go to the following folder using a command prompt:
(TrueSight Presentation Server) %TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheck (Windows) or $TRUESIGHTPSERVER_HOME/utility/TrueSightHealthCheck (Linux).
(TrueSight Infrastructure Management) %BPPM_SERVER_HOME%\utility\TrueSightHealthCheck (Windows) or $BPPM_SERVER_HOME/utility/TrueSightHealthCheck (Linux). - Run the following command:
(Windows) TrueSightHealthCheck.bat
(Linux) sh TrueSightHealthCheck.sh - Check the summary report that is generated at utility\TrueSightHealthCheck\reports (Windows) or utility/TrueSightHealthCheck/reports (Linux).
For example, C:\Program Files\BMC Software\TrueSight\utility\TrueSightHealthCheck\reports\TSIM_TruesightHealth_2019082801530.html.
Using the recommendations from the generated report, you can reconfigure your system to improve performance and reliability.
To schedule the tool to run automatically
You can schedule the TrueSight Health Check Tool to run periodically on TrueSight Infrastructure Management and TrueSight Presentation Server by creating a schedule job (Windows) or a cron job (Linux).
In release 11.3.07, the TrueSight Health Check Tool is scheduled to run every Monday at 6:30 AM. You can change the cronjob or the task schedule according to your requirement. If you have configured an email ID in TrueSight Infrastructure Management and TrueSight Presentation Server, the TrueSight Health Check Tool reports are automatically sent to this email.
(Windows) Creating a schedule job for TrueSight Infrastructure Management
In the same folder where the TrueSightHealthCheck.bat is located, create a new bat file called TSIMHCTScheduler.bat.
The TrueSightHealthCheck.bat file is located at: %BPPM_SERVER_HOME%\utility\TrueSightHealthCheckAdd the following contents to the TSIMHCTScheduler.bat file:
@echo off
set BPPM_SERVER_HOME=<path to BPPM SERVER HOEM>
set FORCE_PRODUCT_TYPE=TSIM
cd "%BPPM_SERVER_HOME%\utility\TrueSightHealthCheck."
TrueSightHealthCheck.bat -emailAdd the scheduler job bu using the following command:
schtasks /create /tn "TSIMHCT_ScheduleJob" /tr "%BPPM_SERVER_HOME%\utility\TrueSightHealthCheck\TSIMHCTScheduler.bat" /sc <frequency> /st <time> /ru "" /FReplace %BPPM_SERVER_HOME%\utility\TrueSightHealthCheck\TSIMHCTScheduler.bat with the path of the TSIMHCTScheduler.bat file.
(Windows) Creating a schedule job for TrueSight Presentation Server
In the same folder where the TrueSightHealthCheck.bat is located, create a new bat file called TSPSHCTScheduler.bat.
The TrueSightHealthCheck.bat file is located at: %TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheckAdd the following contents to the TSPSHCTScheduler.bat file:
@echo off
set TRUESIGHTPSERVER_HOME=<path to TSPS HOME>
set FORCE_PRODUCT_TYPE=TSPS
cd "%TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheck"
TrueSightHealthCheck.bat -emailAdd the scheduler job bu using the following command:
schtasks /create /tn "TSPSHCT_ScheduleJob" /tr "%TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheck\TSPSHCTScheduler.bat" /sc <frequency> /st <time> /ru "" /FReplace %TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheck\TSPSHCTScheduler.bat with the path of the TSPSHCTScheduler.bat file.
(Linux) Adding a cron job for TrueSight Infrastructure Management
- Log in as the user with which TrueSight Infrastructure Management is installed.
In the same folder where the TrueSightHealthCheck.sh is located, create a new bat file called TSIMHCTScheduler.sh.
The TrueSightHealthCheck.sh file is located at: %BPPM_SERVER_HOME%\utility\TrueSightHealthCheckAdd the following contents to the TSIMHCTScheduler.bat file:
set echo off
export BPPM_SERVER_HOME=<PATH TO SERVER HOME installation dir>
export FORCE_PRODUCT_TYPE=TSIM
cd $BPPM_SERVER_HOME/utility/TrueSightHealthCheck
./TrueSightHealthCheck.sh -email
exit- Create the cron job entry with crontab -e by replacing $BPPM_SERVER_HOME with the actual path.
Set the schedule for the job, for example once a day or once a week.
(Linux) Adding a cron job for TrueSight Presentation Server
- Log in as the user with which TrueSight Presentation Server is installed.
In the same folder where the TrueSightHealthCheck.sh is located, create a new bat file called TSPSHCTScheduler.sh.
The TrueSightHealthCheck.sh file is located at: %TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheckAdd the following contents to the TSPSHCTScheduler.bat file:
set echo off
export TRUESIGHTPSERVER_HOME=<PATH TO SERVER HOME installation dir>
export FORCE_PRODUCT_TYPE=TSPS
cd $TRUESIGHTPSERVER_HOME/utility/TrueSightHealthCheck
./TrueSightHealthCheck.sh -email
exit- Create the cron job entry with crontab -e by replacing $TRUESIGHTPSERVER_HOME with the actual path.
Set the schedule for the job, for example once a day or once a week.
Scheduling the report email
You can schedule the generated TrueSight Health Check Tool report to be emailed automatically to the administrator.
Ensure that you have configured the administrator email. For more information, see the following links:
For TrueSight Presentation Server: Monitoring the Presentation Server environment
For TrueSight Infrastructure Management: Configuring e-mail settings to receive alerts
On Windows:
Create a batch file with the following content in a folder that is outside the product installation folder.
Presentation Servercd %TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheck
TrueSightHealthCheck.bat -emailInfrastructure Management Servercd %BPPM_SERVER_HOME%\utility\TrueSightHealthCheck
TrueSightHealthCheck.bat -email- Schedule a task in the Windows task scheduler to run as per your requirement. BMC recommends to schedule it weekly. Provide the path of the batch file as the execution program.
On Linux:
Create a crontab scheduler as per the following sample shell file in a folder that is outside the product installation folder.
When you create the crontab, make sure that it is applicable to the Presentation Server user. Test the shell and batch file manually before you add it in the scheduled task and crontab.
cd $TRUESIGHTPSERVER_HOME/utility/TrueSightHealthCheck
sh TrueSightHealthCheck.sh -email
sh TrueSightHealthCheck.sh -email
TrueSight Health Check Tool validations
The command prompt displays the steps that are being processed by the TrueSight Health Check Tool. The following steps are performed in the TrueSight Infrastructure Management Health Check Tool.
Step 1 - initializes the tool and sets environment variables needed for the tool.
Step 2 - validates the OS prerequisites for running the tool.
Step 3 - validates the OS configuration for running TrueSight Infrastructure Management. This validation is the same as the installer – checks OS, RAM, CPU, disk space, and so on.
Step 4 - validates the performance tuning parameters and includes heap settings, garbage collection settings, and so on.
Step 5 - validates the properties most commonly used in the product. It looks for duplicate parameters, CTRL-M characters, and so on.
Step 6- validates to see if a particular message exists in the log file – any errors or concerns.
Step 7 - runs several checks against the database and checks Oracle tuning parameters, MFD counts, instance counts, and so on.
Step 8 - validates the ports between components and checks if there are any issues in connecting the TrueSight Infrastructure Management to the TrueSight Presentation Server.
Step 9 - validates the other node is running (only applicable to HA).
Step 10 - executes the scripts used for netstat details, such as OS patch levels, important version details, and so on. The details are captured in the Summary Report.
Step 11 - consolidates all the reports generated in the steps above and creates the Summary Report. It displays the path to the report that was generated as a result of running the tool.
If any of these steps fail, the TrueSight Health Check Tool continues through the rest of the steps.
Uninstalling the TrueSight Health Check Tool
Perform the following steps:
- On the host where TrueSight Presentation Server is installed, delete the following folder:
- (Windows) %TRUESIGHTPSERVER_HOME%\utility\TrueSightHealthCheck
- (Linux) $TRUESIGHTPSERVER_HOME/utility/TrueSightHealthCheck
- On the host where TrueSight Infrastructure Management is installed, delete the following folder:
- (Windows) %BPPM_SERVER_HOME%\utility\TrueSightHealthCheck
- (Linux) $BPPM_SERVER_HOME/utility/TrueSightHealthCheck