Xymon Mailing List Archive search

combostatus

4 messages in this thread

list Walter Rutherford · Tue, 23 Feb 2016 09:20:14 -0900 ·
Hello,

I'm trying to setup a test to check that my systems are running ssh2 but
NOT ssh1.
Ideally I just want a single column, ssh, that reports ssh2 and only ssh2
is running.
I thought I'd have to use a combo test but all of the examples I see appear
to be for
a specific system rather than a column test for all of my monitored systems.

I was trying things like:
    (!ssh1 && ssh2)
or
   sshtest = (( ssh1 != 1) && (ssh2 == 1))

But all I got for my trouble was red ssh1 indicators. Apparently even when
ssh1 is
disabled ssh returns a status line like:
     Protocol major versions differ: 1 vs. 2

which xymon reads as a positive result rather than a negative. I then tried
matching
the status message by modifying the test in protocols.cfg but, since I have
to also
match positive results, that didn't work either.

I'm sure I used to do this with Big Brother but at that time I'm pretty
sure ssh1 just
failed instead of returning a status so I could test for !ssh1.

  Walter R.
list John Thurston · Tue, 23 Feb 2016 09:29:16 -0900 ·
On 2/23/2016 9:20 AM, Walter Rutherford wrote:
- snip -
quoted from Walter Rutherford
I'm sure I used to do this with Big Brother but at that time I'm pretty
sure ssh1 just
failed instead of returning a status so I could test for !ssh1.
Since protocols.cfg defines ssh, ssh1, and ssh2 as aliases to exactly 
the same test, I expect them to return exactly the same results.
[ssh|ssh1|ssh2]
   send "SSH-2.0-OpenSSH_4.1\r\n"
   expect "SSH"
   options banner
   port 22
If you want ssh1 and ssh2 to return different results, you're going to 
have to change the definition of at least one of them.

-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list Walter Rutherford · Tue, 23 Feb 2016 10:00:35 -0900 ·
PS Now I either have all red or all purple status for redundant tests. I've
tried the
known trick to get rid of a test column but it's hasn't worked. Instead I'm
getting
xymond multi-source status errors for hosts primary IP and 127.0.0.1. I'd
have
manually removed the expired tests but I haven't been able to find the
directory
where they're stored.

I finally had to add tests for ssh, ssh1, and ssh2 just so the xymon webpage
didn't look like the Apocalypse had arrived.

On Tue, Feb 23, 2016 at 9:20 AM, Walter Rutherford <user-6b85327bb8bb@xymon.invalid>
quoted from Walter Rutherford
wrote:
Hello,

I'm trying to setup a test to check that my systems are running ssh2 but
NOT ssh1.
Ideally I just want a single column, ssh, that reports ssh2 and only ssh2
is running.
I thought I'd have to use a combo test but all of the examples I see
appear to be for
a specific system rather than a column test for all of my monitored
systems.

I was trying things like:
    (!ssh1 && ssh2)
or
   sshtest = (( ssh1 != 1) && (ssh2 == 1))

But all I got for my trouble was red ssh1 indicators. Apparently even when
ssh1 is
disabled ssh returns a status line like:
     Protocol major versions differ: 1 vs. 2

which xymon reads as a positive result rather than a negative. I then
tried matching
the status message by modifying the test in protocols.cfg but, since I
have to also
match positive results, that didn't work either.

I'm sure I used to do this with Big Brother but at that time I'm pretty
sure ssh1 just
failed instead of returning a status so I could test for !ssh1.

  Walter R.

list John Thurston · Tue, 23 Feb 2016 10:05:11 -0900 ·
quoted from Walter Rutherford
On 2/23/2016 10:00 AM, Walter Rutherford wrote:
PS Now I either have all red or all purple status for redundant tests.
I've tried the
known trick to get rid of a test column but it's hasn't worked.
Is the known trick:
   ~/server/bin/xymon localhost "drop foo.bar.com ssh1"
quoted from John Thurston
?
-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska