#587455 xymon: state flickers if more than one ssh port ist tested remotely

Package:
xymon
Source:
xymon
Description:
monitoring system for systems, networks and applications
Submitter:
Axel Beckert
Date:
2015-01-30 20:45:04 UTC
Severity:
wishlist
#587455#5
Date:
2010-06-28 18:28:29 UTC
From:
To:
I have one system which hosts some virtual machines. SSH access to
them is given by doing port-forwarding on some higher ports.

So in bb-hosts, I wrote:

123.456.789.123 somehostname # ssh ssh:2200 ssh:2222

On our hobbit IRC bot (from hobbit plugins) I now see a steady
flickering between yellow and green:

19:44:47 <somehobbitbot> somehostname ssh is yellow (was green)
19:44:50 <somehobbitbot> somehostname ssh is green (was yellow)
19:45:12 <somehobbitbot> somehostname ssh is yellow (was green)
19:45:14 <somehobbitbot> somehostname ssh is green (was yellow)
19:45:48 <somehobbitbot> somehostname ssh is yellow (was green)
19:45:51 <somehobbitbot> somehostname ssh is green (was yellow)
19:46:49 <somehobbitbot> somehostname ssh is yellow (was green)
19:46:51 <somehobbitbot> somehostname ssh is green (was yellow)

On the website in the last log entries section of the test's history
it looked even stranger:

Mon Jun 28 19:46:49 2010		0:01:01
Mon Jun 28 19:46:49 2010		none
Mon Jun 28 19:45:48 2010		0:01:01
Mon Jun 28 19:45:48 2010		none
Mon Jun 28 19:45:12 2010		0:00:36
Mon Jun 28 19:45:12 2010		none
Mon Jun 28 19:44:45 2010		0:00:27
Mon Jun 28 19:44:45 2010		none

If I go back to one ssh entry (independent if I choose the one causing
the green or the one causing the yellow state) in that bb-hosts line,
everything is fine and calm again and the state displays the state of
the one single ssh server tested then.

IMHO the ssh test (and possibly others which allow the addition of
port numbers) should work similar to the http test which is capable of
accumulating the test results of more than one URL given in its
bb-hosts line.

#587455#8
Date:
2010-06-29 07:47:08 UTC
From:
To:
severity 587455 wishlist
tags 587455 upstream
thanks

Re: Axel Beckert 2010-06-28 <20100628182829.3E5EE2E4C7D@snitch.localdomain>

Hi,

I don't think this is supposed to be used in that way. What works is
to add new services to /etc/hobbit/bb-services:

[ssh2200]
   send "SSH-2.0-OpenSSH_4.1\r\n"
   expect "SSH"
   options banner
   port 2200

and then use that in bb-hosts:

123.456.789.123 somehostname # ssh ssh2200 ssh2222

Arguably, your version should also work. I'll leave this as a wishlist item for
upstream.

Christoph