OCF RA to run Sentinel 7 in HA



By: jkalcic

March 7, 2012 3:19 pm

Reads: 266

License:
None

Download sentinel_0.tgz

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.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags:
Categories: Cool Tools, Sentinel

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Comment