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

Daniel Ceola DCeola at twgi.net
Fri Nov 2 15:54:43 CET 2012


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 at yahoo.com]
Sent: Friday, November 02, 2012 10:48 AM
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20121102/2db17802/attachment.html>


More information about the Help mailing list