[Nagiosplug-help] check_by_ssh - (Service Check Timed Out)

Ian Rarity Ian.Rarity at espc.com
Fri Nov 2 15:56:10 CET 2012


Hi Tim,

What user does your Nagios process run checks as?  The default is "nagios"; have you tried running the command as that user from the command line?

Ta,
IR.

==================
Ian Rarity
IT Services Engineer
ESPC (UK) Ltd.
ian.rarity at espc.com<mailto:ian.rarity at espc.com>
http://www.espc.com<http://www.espc.com/>
==================


From: Tim Sheets [mailto:dolfantimmy at yahoo.com]
Sent: 02 November 2012 14:48
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] check_by_ssh - (Service Check Timed Out)

I'm pulling my hair out over this one.

If I execute the following from the command line....

./check_by_ssh -t 60 -H 10.171.6.75 -C "~/bin/check_disk -t 60 -w 20% -c 10%"

I get a perfect response.

But, when the following command in commands.cfg is executed, it always returns Service Check Timed Out

define command{
        command_name    check_remote_disk
        command_line    $USER1$/check_by_ssh -t 60 -H $HOSTADDRESS$ -C "~/bin/check_disk -t 60 -w $ARG1$ -c $ARG2$"
        }


Any ideas?

________________________________
Follow us on Twitter at http://twitter.com/espc

Private and Confidential: This e-mail transmission is strictly confidential and intended solely for the addressee. It may contain privileged and confidential information and if you are not the intended recipient, you must not copy, disclose, distribute or take any action in reliance on it. If you have received this e-mail in error, please delete it and notify our E-mail Systems Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not accept any liability for any harm that may be caused to the recipient's system or data by this message or any attachment.

ESPC (UK) Ltd is a company registered under the Companies Acts in Scotland (Registered Number SC203585), and having its registered office at 90A George Street, Edinburgh, Midlothian EH2 3DF.

ESPC (UK) Ltd is an Appointed Representative of Accord Consultancy which is authorised and regulated by the Financial Services Authority.

*******************************************************************

Private and Confidential:  This e-mail transmission is strictly 

confidential and intended solely for the addressee.  It may contain

privileged and confidential information and if you are not the 

intended recipient, you must not copy, disclose, distribute or 

take any action in reliance on it. If you have received this 

e-mail in error, please delete it and notify our E-mail Systems 

Administrator on +44 (0) 131 624 8000. ESPC (UK) Ltd does not 

accept any liability for any harm that may be caused to the 

recipient's system or data by this message or any attachment. 



ESPC (UK) Ltd is a company registered under the Companies 

Acts in Scotland (Registered Number SC203535), and having its

registered office at 90A George Street, Edinburgh, Midlothian 

EH2 3DF.



ESPC (UK) Limited is authorised and regulated by the Financial 

Services Authority.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20121102/f755bc27/attachment.html>


More information about the Help mailing list