Re: check_by_ssh - (Service Check Timed Out)

Daniel Ceola <[email protected]>
Newsgroups gmane.network.nagios.plugins
Message-ID <[email protected]>
I'm by no means an expert, but I'm wondering if the quotation marks after the -C are screwing with nagios being able to properly pull in the values for arg1 and arg2? (maybe instead of getting arg1/2 values, it's sending the string $ARG1$ (and 2) as text for those items.

Maybe try setting up a $USERx$ item that contains just the quote marks, that could have an effect on it.  OR try using an escape char in front of the quote marks?

Eg:

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

With

$USERx$ = " (or with the appropriate escape character).

Thanks,

Daniel Ceola

From: Tim Sheets [mailto:dolfantimmy-/[email protected]]
Sent: Friday, November 02, 2012 10:48 AM
To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
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?

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d

_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.