[Nagiosplug-help] check_by_ssh check_disk returning NULL

Marc Powell lists at xodus.org
Tue Mar 23 04:55:44 CET 2010


Hi Aaron,

On Mar 22, 2010, at 9:33 AM, SAMSON, AARON (ATTOPS) wrote:

> ######### Command Definition ########
> 
> define command {
>        command_name    check_remote_disk
>        command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C
> "/home/nagios/bin/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$

You're missing a close " here. Is that a typo in the e-mail or the command_line?

>> Here is my command line string and response:
>> 
>> ./check_by_ssh -H <SERVER> -C "/home/nagios/bin/check_disk -w 20% -c
> 10% -p /"

Does the 'address' parameter of the host definition for panther exactly match what you used for <SERVER> above? If not, did you test using that address and accept the ssh host key? You also might want to try temporarily modifying the check_remote_disk command line to capture any error output to a file --

command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/home/nagios/bin/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$" >/tmp/check.out 2>&1

--
Marc



More information about the Help mailing list