Tool

jkalcic's picture
tool
Reads:

3473

Score:
1.8
1.8
5
 
Comments:

0

OCF RA to run Sentinel 7 in HA

Author Info

7 March 2012 - 3:19pm
Submitted by: jkalcic

(View Disclaimer)

license: 
None

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.

AttachmentSize
sentinel.tgz2.33 KB

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell