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. <rltexas1 at gmail.com> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon