[Nagiosplug-help] check_by_ssh check_disk returning NULL

SAMSON, AARON (ATTOPS) rs1865 at att.com
Tue Mar 23 16:45:30 CET 2010


Marc,

The status information started working about 30 minutes after I got the
first (null) response. Not sure why this took so long to show up, but
all is well!

Thanks again for your help.

Aaron

-----Original Message-----
From: SAMSON, AARON (ATTOPS) 
Sent: Tuesday, March 23, 2010 11:27 AM
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] check_by_ssh check_disk returning NULL

Marc,

Thank you for your suggestions. Yes the missing closing " was a typo
from me cutting and pasting, and the server name I am using is the same
in the command line. 

I sent any error output to a file, and everything looks good there also.
The problem is that I am just not seeing the response from the command
in the gui showing the stats:

DISK OK - free space: / 15258 MB (69% inode=97%);|
/=6849MB;18648;20979;0;23310

The service is showing 'OK', but Status Information in the gui is still
showing "(null)".

I have tried this on 2 different servers with the same problem.

Thanks for your help so far.

Aaron

-----Original Message-----
From: Marc Powell [mailto:lists at xodus.org] 
Sent: Monday, March 22, 2010 11:56 PM
To: Nagios Plugin Help List
Subject: Re: [Nagiosplug-help] check_by_ssh check_disk returning NULL

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
------------------------------------------------------------------------
------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
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

------------------------------------------------------------------------
------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
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




More information about the Help mailing list