OCF RA to run Sentinel 7 in HA

OCF RA to run Sentinel 7 in HA

The OCF script here is a modified version of the one for Sentinel Log Manager available with this article High Availability for Sentinel Log Manager in 9 points ...and many more links. It contains the needed changes to run Sentinel 7 in High Availability plus some interesting "new features" which allow you to configure each single Sentinel component in HA on its own. This is also intended to finalize this article Sentinel 7 HA step-by-step as well.

It basically contains more parameters like the following:



...
parameter name="Web_port" required="0">
<longdesc lang="en">
Web Server port. Default is 8443.
</longdesc>
<shortdesc lang="en">Web Server port</shortdesc>
<content type="string" default="8443" />
</parameter>
...


and some new conditions to make it monitor only the configured Sentinel component:



...
if [ -n "${OCF_RESKEY_Web_port}" ] ; then
if ! netstat -ntl | grep "${OCF_RESKEY_Web_port}" ; then
ocf_log err "Sentinel not listening on port ${OCF_RESKEY_Web_port} (Web Server port)."
return $OCF_ERR_GENERIC
else
ocf_log info "Web Server port "${OCF_RESKEY_Web_port}" is listening"
fi
else
...


This can be modified at will, however at the moment the RA is able to manage the following services:



  • Web port (default 8443)
  • Java port (default 61616)
  • Client port (default 10013)
  • Database port (default 5432)
  • Mongo port (default 27017)
  • Agent port (default 5556)


With this approach it is possible to choose which Sentinel service to monitor, useful for example with distributed infrastructure where there is the need to configure in HA the Collector Manager or the Correlation Engine.



Also, with this script it is possible to specify the port numbers to monitor in case the default is not in use.

Tags (1)
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 #:
1 of 1
Last update:
‎2012-03-07 23:19
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.