Health Check Tool

Health Check Tool

Validation of Access Manager services health usually is achieved by launching a REST call using "curl" or "wget" to get health/response to perform smoke or automation test suites is a typical Use case.

Now that https (backed by TLS) is secure in Access Manager, the version of curl/wget on stock SLES 11 (upto SP4 update) fails with "SSL error: unknown protocol" is a problem statement.

This isn't a problem if one is on stock SLES 12 which has the updated curl/wget packages, but upgrading curl/wget on stock SLES 11 isn't a solution as it beats the goal of certifying the product on a given version of stock operating system. Also, it's overhead to upgrade the packages and dependencies on numerous test servers just for the purpose of validating health or specific REST calls.

Solution:


Advent of the Health Check tool is to overcome the aforesaid problem which is a simple java application and distributed as runnable jar.

The attached zip includes the HealthCheck.jar which can be executed on any system that has java installed.

Usage:

  1. java -jar HealthCheck.jar <URL>

  2. java -jar HealthCheck.jar <URL> <credentials>

  3. java -jar HealthCheck.jar -help



Implementation examples related to Access Manager:

java -jar HealthCheck.jar <https://<hostname/ip>:<port>/nidp/app/heartbeat

java -jar HealthCheck.jar <https://<esp_hostname>:443/nesp/app/hearthbeat

java -jar HealthCheck.jar <https://<hostname/ip>:<port>/nps/rest/clusters <username>:<password>

The Health check utility can be extended to any REST service calls which has definitive response to http over TLS and be enhanced further.
Labels (2)
Attachments

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
5 of 5
Last update:
‎2020-01-31 22:11
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.