[Xymon] SSH test checks too often for a device
Jeremy Laidman
jlaidman at rebel-it.com.au
Fri Jun 29 01:27:52 CEST 2012
Thanks Neil. However, the method you use affects all xymonnet tests for
the tagged server(s), not just the one causing you timeout problems. In my
case, it's unacceptable because it would delay more critical tests like
ping tests, and it would take longer for me to find out when a server has
gone off-line.
I just wish xymonnet supported a command-line switch to specify a list of
tests to include and/or exclude. Then I could do something like this:
[sshnormal]
CMD xymonnet --report --ping --checkresponse --tests:ssh
INTERVAL 5m
[sshslow]
CMD ssh -c 'XYMONNETWORK=sshslow xymonnet --report --ping
--checkresponse --tests:ssh'
INTERVAL 10m
or similar.
J
On Thu, Jun 28, 2012 at 7:50 PM, Neil Simmonds <
Neil.Simmonds at express-gifts.co.uk> wrote:
> ** ** ** ** **
>
> I should have mentioned on the below description that I am still running
> this at 5 minute intervals but just using it for a bigger timeout as I have
> one test that can be a bit slow. It’s actually an http test that can take
> more than the standard timeout. ****
>
> ** **
>
> I’m sure this should be adaptable to SSH tests.****
>
> ** **
> ------------------------------
>
> *From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On
> Behalf Of *Neil Simmonds
> *Sent:* 28 June 2012 10:40
> *To:* xymon at xymon.com
> *Subject:* Re: [Xymon] SSH test checks too often for a device****
>
> ** **
>
> I do this for certain ping tests.****
>
> ** **
>
> I have a slowtests.sh script in my ext directory like this,****
>
> ** **
>
> #!/bin/sh****
>
> ** **
>
> XYMONNETWORK="slowtests"****
>
> export XYMONNETWORK****
>
> ** **
>
> $XYMONHOME/bin/xymonnet --report --ping --checkresponse --timeout=20****
>
> ** **
>
> ** **
>
> Then my tasks.cfg has been changed so that xymonnet has the –test-untagged
> option,****
>
> ** **
>
> [xymonnet]****
>
> ENVFILE /xymon/server/etc/xymonserver.cfg****
>
> NEEDS xymond****
>
> CMD xymonnet --report --ping --checkresponse --test-untagged****
>
> LOGFILE $XYMONSERVERLOGS/xymonnet.log****
>
> INTERVAL 5m****
>
> ** **
>
> And I have a new entry at the bottom like this,****
>
> ** **
>
> ** **
>
> [slowtests]****
>
> ENVFILE /xymon/server/etc/xymonserver.cfg****
>
> NEEDS xymond****
>
> CMD $XYMONHOME/ext/slowtests.sh ****
>
> LOGFILE $XYMONSERVERLOGS/slowtests.log****
>
> INTERVAL 5m****
>
> ** **
>
> ** **
>
> Then all I do is add the tag “NET:slowtests” to the tests that I only want
> to run every 20 minutes.****
>
> ** **
>
> I must admit though, that I’m not sure if xymonnetagain would still pick
> up a failure from slowtests and start the 1m retries. ****
>
> ** **
>
> Perhaps someone else can help on that. ****
>
> ** **
> ------------------------------
>
> *From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On
> Behalf Of *Jeremy Laidman
> *Sent:* 28 June 2012 10:29
> *To:* xymon at xymon.com
> *Subject:* [Xymon] SSH test checks too often for a device****
>
> ** **
>
> Hiya****
>
> ** **
>
> I have a few devices on which I do an ssh check. These devices have some
> sort of self-defence mechanism and they throttle connecting to the sshd
> process if they get failed connections (with no login) at too high a rate.
> Unfortunately, twice every 5 minutes (I have two Xymon servers) is
> sometimes a bit too often, and once they start to fail, I'm guessing that
> xymonnet-again.sh starts to hammer them every minute. The devices are
> appliances such that I cannot configure this behaviour.****
>
> ** **
>
> I know there's a funky NET:location hack that can be used to adjust the
> frequency of the net tests for nominated hosts, but I see no way to limit
> the effect to only the ssh test, and so all tests will be slowed down.****
>
> ** **
>
> Can anyone think of a better way to do this than the NET:location hack? I
> only want to slow down the ssh tests.****
>
> ** **
>
> Cheers****
>
> Jeremy****
>
> ** **
>
> Name & Registered Office: EXPRESS GIFTS LIMITED, ****2 GREGORY ST****,
> HYDE, ****CHESHIRE**, **ENGLAND****, SK14 4TH, Company No. 00718151.****
>
> Express Gifts Limited is authorised and regulated by the Financial
> Services Authority****
> ------------------------------
>
> NOTE: This email and any information contained within or attached in a
> separate file is confidential and intended solely for the Individual to
> whom it is addressed. The information or data included is solely for the
> purpose indicated or previously agreed. Any information or data included
> with this e-mail remains the property of Findel PLC and the recipient will
> refrain from utilising the information for any purpose other than that
> indicated and upon request will destroy the information and remove it from
> their records. Any views or opinions presented are solely those of the
> author and do not necessarily represent those of Findel PLC. If you are not
> the intended recipient, be advised that you have received this email in
> error and that any use, dissemination, forwarding, printing, or copying of
> this email is strictly prohibited. No warranties or assurances are made in
> relation to the safety and content of this e-mail and any attachments. No
> liability is accepted for any consequences arising from it. Findel Plc
> reserves the right to monitor all e-mail communications through its
> internal and external networks. If you have received this email in error
> please notify our IT helpdesk on +44(0) 1254 303030****
>
> ** **
>
> Name & Registered Office: EXPRESS GIFTS LIMITED, 2 GREGORY ST, HYDE,
> CHESHIRE, ENGLAND, SK14 4TH, Company No. 00718151.
>
> Express Gifts Limited is authorised and regulated by the Financial
> Services Authority
> ------------------------------
>
> NOTE: This email and any information contained within or attached in a
> separate file is confidential and intended solely for the Individual to
> whom it is addressed. The information or data included is solely for the
> purpose indicated or previously agreed. Any information or data included
> with this e-mail remains the property of Findel PLC and the recipient will
> refrain from utilising the information for any purpose other than that
> indicated and upon request will destroy the information and remove it from
> their records. Any views or opinions presented are solely those of the
> author and do not necessarily represent those of Findel PLC. If you are not
> the intended recipient, be advised that you have received this email in
> error and that any use, dissemination, forwarding, printing, or copying of
> this email is strictly prohibited. No warranties or assurances are made in
> relation to the safety and content of this e-mail and any attachments. No
> liability is accepted for any consequences arising from it. Findel Plc
> reserves the right to monitor all e-mail communications through its
> internal and external networks. If you have received this email in error
> please notify our IT helpdesk on +44(0) 1254 303030****
>
> ** **
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120629/d0424a9c/attachment.html>
More information about the Xymon
mailing list