Xymon Mailing List Archive search

ports check for a VIP...

list Jeremy Laidman
Tue, 12 Oct 2021 20:47:27 +1100
Message-Id: <CACO=ejyn-0ejr_95ZndPtPURSc=user-247b1722a735@xymon.invalid>

So during the outage, both wp-vldyn-estrelata.ports and
wp-vldyn-rafeiro.ports were green? That's what the (1)||(1) means.

Is it possible that the two services were down, but just not at the same
time? Maybe you can do a snapshot report at the time of the outage, and
check the two procs status values?

Note that "yellow" is considered non-red, so comes out as a "1" in the
boolean calculations (only "red" is "0", unless configured otherwise).
Although I imagine if the mysqld process was down, the ports status
wouldn't be yellow.

Regardless, I recommend you test the combo status by intentionally adding
checks that are down, or manually downing services to cause reds. You can
simulate this result without actually breaking the service by running
something like:

  xymoncmd xymon 127.1 "status wp-vldyn-estrela.ports red testing"
  xymoncmd xymon 127.1 "status wp-vldyn-rafeiro.ports red testing"

and until the real test runs next, the status will be red. At that point,
the combo should also turn red. If it doesn't, you might have an error in
your config.

After running the above two commands, perhaps run:

 xymoncmd combostatus --debug --no-update

and see how it's parsing the logic.

Cheers
Jeremy


On Tue, 12 Oct 2021 at 20:12, Ian Diddams <user-7fbf34ed5219@xymon.invalid> wrote:
as reported previously...


(wp\-vldyn\-estrela.ports)||(wp\-vldyn\-rafeiro.ports) = (1)||(1) = 1
[image: clear] wp-vldyn-estrela.ports
[image: green] wp-vldyn-rafeiro.ports

ian


On Monday, 11 October 2021, 12:44:30 BST, Jeremy Laidman <
user-0608abae5e7c@xymon.invalid> wrote:


What was the output on the combo check page, during the outage?


On Mon, 11 Oct 2021 at 19:16, Ian Diddams via Xymon <xymon at xymon.com>
wrote:


---------- Forwarded message ----------
From: Ian Diddams <user-7fbf34ed5219@xymon.invalid>
To: xymon <xymon at xymon.com>
Cc:
Bcc:
Date: Mon, 11 Oct 2021 08:16:02 +0000 (UTC)
Subject: Re: [Xymon] ports check for a VIP...
Purely a sort of FYI I guess...  not sure what was occurring but last
Friday early hours the clusetrr had a bit of a tizz and both nodes had no
mysqld running and so procs was not green on both nodes...  but the combo
check remained green throughout..


On Thursday, 7 October 2021, 09:41:02 BST, Ian Diddams via Xymon <
xymon at xymon.com> wrote:


That's great Jeremy - many thanks

Now

(wp\-vldyn\-estrela.ports)||(wp\-vldyn\-rafeiro.ports) = (1)||(1) = 1
[image: clear] wp-vldyn-estrela.ports
[image: green] wp-vldyn-rafeiro.ports

ian


On Wednesday, 6 October 2021, 05:15:11 BST, Jeremy Laidman <
user-0608abae5e7c@xymon.invalid> wrote:


On Mon, 4 Oct 2021 at 23:15, Ian Diddams via Xymon <xymon at xymon.com>
wrote:


intrigiingly the actual output on that combo check shows


(wp-vldyn-estrela.ports)||(wp-vldyn-rafeiro.ports) = (0-0-1)||(0-0-1) = 1

 <snip>


i.e. its all showing clear for the individual lines which are also
separated where the hostname includes a hyphen...  is that all correct ?

I don't think so. From the manpage of combo.cfg:

"Note: If the expression involves hostnames with a character that is also
an operator - e.g. if you have a host "t1-router-newyork.foo.com" with a
dash in the hostname - then the operator-character must be escaped with a
backslash '\' in the expression, or it will be interpreted as an operator.
E.g. like this:
 nyc.conn = (t1\-router\-nyc.conn || backup\-router\-nyc.conn)"

That's why it thinks you have hostnames like "wp" and "vldyn". It's almost
certainly not testing what you want it to be testing.

Cheers
Jeremy


---------- Forwarded message ----------
From: Ian Diddams via Xymon <xymon at xymon.com>
To: xymon <xymon at xymon.com>
Cc:
Bcc:
Date: Mon, 11 Oct 2021 08:16:02 +0000 (UTC)
Subject: Re: [Xymon] ports check for a VIP...