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>
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.