Xymon Mailing List Archive search

ssh ext issue.

list Ricardo L.
Thu, 04 Jun 2015 08:22:37 -0700 (PDT)
Message-Id: <1433431357727.cbdc0dad@Nodemailer>

Brilliant thank you !!!

On Tue, Jun 2, 2015 at 8:02 PM, Jeremy Laidman <user-71895fb2e44c@xymon.invalid>
wrote:
I don't know how your ext script works.  However you could prefix your ssh
command with a conditional that checks the status of the xymonnet result.
Something like this:
for SERVER in $SERVERLIST; do
    if $XYMON $XYMSRV "query $SERVER.ssh" | grep "^green" >/dev/null; then
      perform-ssh-tasks
    else
      $XYMON $XYMSRV "status $SERVER.disk clear `date` ssh failed"
    fi
done
I don't know if you can hook into xymonnet-again.sh to run your test more
frequently, but I suspect it would take a lot of work/hacking to get what
you want.  It might be easier to re-invent the wheel to better suit your
requirements.
Perhaps update your ext script so it can be run once per minute, and have
it skip the main execution phase if the current ssh (or other) status is
green and less than 5 minutes old.
Cheers
Jeremy
On 3 June 2015 at 00:59, Ricardo L. <user-7954c4ed4af4@xymon.invalid> wrote:
 I have an ext test that runs daily. Since I  not allows to install
clients I ssh over get what I need test and report on the results.

The problem is that when servers come offline I get false Positive.

Is there a way I can leverage xmonnnet to test for ssh connectivity before
I run the ext or as part of the ext  (ping is blocked ).

How can I use xymonnet-again to run yellow tests again sooner ?

Thanks