Xymon Mailing List Archive search

Two Hobbit Servers

7 messages in this thread

list James Wade · Thu, 4 Jan 2007 12:45:57 -0600 ·
Hello,

 
I want to run Two Hobbit Servers for redundancy purposes.

Can someone give me some pointers. What's the best

way to set this up, and which files do I change?

 
I've looked through hobbitclient.cfg and it has the following:

 
BBDISP="192.168.0.218"             # IP address of the Hobbit server

BBDISPLAYS=""                   # IP of multiple Hobbit servers. BBDISP must
be "0.0.0.0".

 
So, Do I set BBDISPLAYS to:

BBDISPLAYS="192.168.0.219"   (For my other Hobbit Server)

 
Will the clients then send data to both servers? How do you account for
paging?

Do you set one machine as the primary and turn-off the other machine?

If one machine fails, can you enable the other to start paging.

 
Any pointers would be really appreciated.

 
Thanks..James

 
James Wade
list Richard Leyton · Thu, 4 Jan 2007 19:22:01 +0000 ·
quoted from James Wade
On 4 Jan 2007, at 18:45, James Wade wrote:
I’ve looked through hobbitclient.cfg and it has the following:


BBDISP="192.168.0.218"             # IP address of the Hobbit server

BBDISPLAYS=""                   # IP of multiple Hobbit servers.  BBDISP must be "0.0.0.0".


So, Do I set BBDISPLAYS to:

BBDISPLAYS=”192.168.0.219”   (For my other Hobbit Server)
Set:

BBDISP="0.0.0.0"

BBDISPLAYS="ip.address.for.svr1 ip.address.for.svr2"

Note space not commas, and quotes around both. The 0.0.0.0 for BBDISP  is the marker for multiple servers, and BBDISPLAYS contains the IP's  for the servers. This is the same for all clients (including the  ~hobbit/client/etc/hobbit on the servers themselves!).
Will the clients then send data to both servers? How do you account  for paging?
Yes, it will.
quoted from James Wade
Do you set one machine as the primary and turn-off the other machine?

If one machine fails, can you enable the other to start paging.
Paging, as in notifications? I currently have a different paging rule  set on the 'backup' box, which just alerts on hobbit server things  being down, ie:

HOST=myprimaryhobbithost SERVICE=bbd,bbgen,bbtest COLOR=red
         SCRIPT /home/hobbit/bin/sms_notify ADMINS

(Which sends an SMS)

Easiest is to keep the primary hobbit-alerts.cfg handy on the  secondary box. There might be a better, or more intelligent way. One  idea I've considered to have some check in the notification script  that periodically checks, and then just drops notifications if it CAN  fetch status from the primary host, but sends them if it CAN'T, ie.  if the primary host is down, the external 'SCRIPT' alert rules kick  in. See bb(1) manpage, specifically wrt. 'query'. But I really  haven't given this much thought, and I wouldn't be surprised if  Henrik or somebody else has a better solution.
Any pointers would be really appreciated.
Hope that helps,

Regards,

Richard

--
Richard Leyton - user-787ca786c598@xymon.invalid
http://www.leyton.org
list Henrik Størner · Thu, 4 Jan 2007 22:31:04 +0100 ·
quoted from James Wade
On Thu, Jan 04, 2007 at 12:45:57PM -0600, James Wade wrote:
I want to run Two Hobbit Servers for redundancy purposes.
Can someone give me some pointers. What's the best
way to set this up, and which files do I change?
There isn't a 100% automatic setup that handles fail-over of the various
tasks, especially paging.

The best solution right now is to run the two servers in parallel;
i.e. setup a synchronization of the bb-hosts, hobbit-alerts.cfg and
hobbit-clients.cfg files and run the same tasks on both of the servers.
On the backup server, you would disable the [bbpage] task in
hobbitlaunch.cfg so you dont get duplicated alerts; in case the primary
server fails, you must then enable this task to get alerts going.

This obviously isn't very smart. Some improvements are underway for
Hobbit 4.3 so fail-over of paging is handled better; it's not yet ready
for production use, though.


Regards,
Henrik
list Denis · Mon, 12 Jan 2009 15:26:15 +0100 ·
hi,

Is there a sort of how-to or a guide to configure two hobbit server that 
monitor each other ?
I encoutered problems with classic configuration so i disconnected 
crossed monitoring between them.

kind regards,

Denis ROY
list Stewart L · Mon, 12 Jan 2009 09:35:29 -0500 ·
I have a hobbit server to monitor production and one to monitor the dev/test
area.

I simply have them monitor one another.  for connectivity and network tests
(http).   Also changed the Hobbit  "Real Name"  in /etc/passwd on the
dev/test monitor to something that stands out on the blackberry when it
comes through. That way when you see an email from "UH-OH!!!!" you know it's
serious. :)

Stew
quoted from Denis


On Mon, Jan 12, 2009 at 9:26 AM, Denis <user-41ff130ea0ee@xymon.invalid> wrote:
hi,

Is there a sort of how-to or a guide to configure two hobbit server that
monitor each other ?
I encoutered problems with classic configuration so i disconnected crossed
monitoring between them.

kind regards,

Denis ROY

-- 

Stewart
--
If you see yourself in others, then whom can you harm?
list Gary Baluha · Mon, 12 Jan 2009 09:42:16 -0500 ·
I  have had two hobbit monitors cross-monitoring each other for months
without a problem.  The main Hobbit server monitors the other hobbit
monitor, and all the other hosts it monitors.  The second Hobbit server just
monitors the main server.  As far as Hobbit is concerned, there is nothing
special about this setup.

Oh, and s/[Hh]obbit/Xymon/g
quoted from Denis

On Mon, Jan 12, 2009 at 9:26 AM, Denis <user-41ff130ea0ee@xymon.invalid> wrote:
hi,

Is there a sort of how-to or a guide to configure two hobbit server that
monitor each other ?
I encoutered problems with classic configuration so i disconnected crossed
monitoring between them.

kind regards,

Denis ROY

list Denis · Mon, 12 Jan 2009 16:23:28 +0100 ·
My configuration was two servers that monitor at the same time different clients.
The first in this case received results from teh other about monitoring a client.
quoted from Gary Baluha

Gary Baluha wrote:
I  have had two hobbit monitors cross-monitoring each other for months without a problem.  The main Hobbit server monitors the other hobbit monitor, and all the other hosts it monitors.  The second Hobbit server just monitors the main server.  As far as Hobbit is concerned, there is nothing special about this setup.

Oh, and s/[Hh]obbit/Xymon/g

On Mon, Jan 12, 2009 at 9:26 AM, Denis <user-41ff130ea0ee@xymon.invalid <mailto:user-41ff130ea0ee@xymon.invalid>> wrote:

    hi,

    Is there a sort of how-to or a guide to configure two hobbit
    server that monitor each other ?
    I encoutered problems with classic configuration so i disconnected
    crossed monitoring between them.

    kind regards,

    Denis ROY