Xymon Mailing List Archive search

ports check for a VIP...

list Christoph Zechner
Tue, 5 Oct 2021 14:12:48 +0200
Message-Id: <user-3d8b63c6b7bd@xymon.invalid>

On 04/10/2021 14:15, Ian Diddams wrote:
actually, Ive possibly? found a solution.

analysis.cfg

HOST=wp-vldyn-estrela
 ??????? PORT "LOCAL=%([.:]3306)$" state=LISTEN min=1 color=clear TEXT=MySQL

HOST=wp-vldyn-rafeiro
 ??????? PORT "LOCAL=%([.:]3306)$" state=LISTEN min=1 color=clear TEXT=MySQL


and now estrela's port check shows a shite unhappy face, and rafeiro's port check shows green


and combo.cfg

mysqldHA.ports = ("wp-vldyn-estrela".ports) || ("wp-vldyn-rafeiro".ports)

which seems to do the trick? - the mysqldHA ports check shows green

intrigiingly the actual output on that combo check shows


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


i.e. its all showing clear for the individual lines which are also separated where the hostname includes a hyphen...? is that all correct ?
Interesting... I'd say this looks correct, yes.


Christoph
ian


On Monday, 4 October 2021, 09:38:21 BST, Christoph Zechner <user-249716582ccc@xymon.invalid> wrote:


On 04/10/2021 10:25, Ian Diddams wrote:
? >It will not spawn any reports or alarm, as long as one of them is green,
? >everything is fine. So in your case, there would be three statuses:

? >1) overall status of this check: green if one is green
? >2) system A red or green
? >3) system B reg or green

? >There are no alarms as long as one of them is green.

well having set it up, the combo test is green indeed - but the two
servfers that make up the combo test are shwoing

* one green (as the port check is green as mysqld is runnoing on that
system)
* one red (as the port check is red as mysqld is runnoing on that system)

So? we do get a red showing that the monitoring team will respond to. I
cant make it "clear" as there are other procs and ports being checked
that do need a red if alerting.
Oh, I see. That is the way it should work, but I did not anticipate your
team responding to the sub-status as well, sorry, my mistake, I could
have worded that more clearly... :-/
so unfortunately it doesnt seem to be the solution - but I do appreciate
the attem[pt to help :-)
No worries, thanks for trying!

Cheers
Christoph

cheers

ian