[Xymon] ports check for a VIP...

Ian Diddams didds3 at yahoo.co.uk
Mon Oct 4 14:15:42 CEST 2021


 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
 wp
 vldyn
 estrela.ports
 wp
 vldyn
 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 ?
ian



    On Monday, 4 October 2021, 09:38:21 BST, Christoph Zechner <zechner at vrvis.at> 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
> 
> 
> 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20211004/fbbec3cb/attachment.htm>


More information about the Xymon mailing list