Xymon Mailing List Archive search

Two hosts, monitor a service that should be running on only one of them

4 messages in this thread

list Shawn Heisey · Fri, 30 Aug 2013 11:09:33 -0600 ·
I have a pair of machines running BBWin in central mode.  Is there any way in analysis.cfg to indicate that a particular service exists on both of them but should only be running on one of them?  If that service is running on both servers or neither server, I want to see a red alarm.

Thanks,
Shawn
list Jeremy Laidman · Wed, 18 Sep 2013 14:53:16 +1000 ·
I think you can do this using a combo test.  Look at the man page for
combo.cfg for instructions.

J
quoted from Shawn Heisey


On 31 August 2013 03:09, Shawn Heisey <user-5d0d01dba542@xymon.invalid> wrote:
I have a pair of machines running BBWin in central mode.  Is there any way
in analysis.cfg to indicate that a particular service exists on both of
them but should only be running on one of them?  If that service is running
on both servers or neither server, I want to see a red alarm.

Thanks,
Shawn
______________________________**

Xymon at xymon.com<
list Adam Goryachev · Wed, 18 Sep 2013 16:30:15 +1000 ·
quoted from Jeremy Laidman
On 18/09/13 14:53, Jeremy Laidman wrote:
I think you can do this using a combo test.  Look at the man page for
combo.cfg for instructions.
Thanks for suggesting this, I just saw this message 10 seconds after
deciding I needed to setup combo tests.

So, I've got two hosts with results in a column lvs (tests linux LVM
snapshots to warn/alert if any are greater that 50%/80% full, and also
red if no snapshot exists).
san1.domain.com.lvs which is currently red
san2.domain.com.lvs which is currently green

bbcombotest.cfg has:
float-san.domain.com.lvs = san1.domain.com.lvs || san2.domain.com.lvs

Running bbcombotest --debug manually produces this:
2013-09-18 16:20:05 Symbolic 'san1.domain.com.lvs||san2.domain.com.lvs'
converted to '1||1'

On the web page I see a green status for float-san.domain.lvs (which is
actually correct).

The problem is on the page, it shows san1 as green and san2 as clear,
but it should show san1 red and san2 green.

I'm running xymon "4.3.0~beta2.dfsg-9.1" from debian package.

Is this something which was fixed in a more recent version, or am I just
doing something wrong?

Thanks,
Adam

-- 
Adam Goryachev
Website Managers
www.websitemanagers.com.au
list Jeremy Laidman · Wed, 18 Sep 2013 17:11:24 +1000 ·
From memory, the combo tests were buggy in some versions, so I'd suggest
upgrading and see if it helps.

J


On 18 September 2013 16:30, Adam Goryachev <
quoted from Adam Goryachev
user-92fd6827f6ae@xymon.invalid> wrote:
On 18/09/13 14:53, Jeremy Laidman wrote:
I think you can do this using a combo test.  Look at the man page for
combo.cfg for instructions.
Thanks for suggesting this, I just saw this message 10 seconds after
deciding I needed to setup combo tests.

So, I've got two hosts with results in a column lvs (tests linux LVM
snapshots to warn/alert if any are greater that 50%/80% full, and also
red if no snapshot exists).
san1.domain.com.lvs which is currently red
san2.domain.com.lvs which is currently green

bbcombotest.cfg has:
float-san.domain.com.lvs = san1.domain.com.lvs || san2.domain.com.lvs

Running bbcombotest --debug manually produces this:
2013-09-18 16:20:05 Symbolic 'san1.domain.com.lvs||san2.domain.com.lvs'
converted to '1||1'

On the web page I see a green status for float-san.domain.lvs (which is
actually correct).

The problem is on the page, it shows san1 as green and san2 as clear,
but it should show san1 red and san2 green.

I'm running xymon "4.3.0~beta2.dfsg-9.1" from debian package.

Is this something which was fixed in a more recent version, or am I just
doing something wrong?

Thanks,
Adam

--
Adam Goryachev
Website Managers
www.websitemanagers.com.au