[Nagiosplug-devel] [ nagiosplug-Bugs-693831 ] check_by_ssh -C "check_disk" does not work

SourceForge.net noreply at sourceforge.net
Thu Mar 6 05:00:09 CET 2003


Bugs item #693831, was opened at 2003-02-26 19:39
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=693831&group_id=29880

Category: None
Group: v1.3.0 beta3
>Status: Deleted
>Resolution: Invalid
Priority: 5
Submitted By: Axel Staacke (sicksegv)
Assigned to: Nobody/Anonymous (nobody)
>Summary: check_by_ssh -C "check_disk" does not work

Initial Comment:
check_by_ssh -l nagios -H remotehost -C
"~/bin/nagiosplug/check_disk -w 10 -c 5"
yields the following:
DISK WARNING - [1587400 kB (84%) free on /dev/ida/c0d0p5]
etc.
The check_disk plugin, when called locally on the
"remotehost", returns OK, however. check_by_ssh -C
"check_ping" also works OK.

It seems as though check_disk exits with status 1
whenever ssh is involved. According to the C sources
this happens either because there is output in stderr
or spclose returns an error code.

How can I get it to work correctly?

----------------------------------------------------------------------

>Comment By: Axel Staacke (sicksegv)
Date: 2003-03-06 14:09

Message:
Logged In: YES 
user_id=166555

Another case of PEBKAC -- "df -Pk" on the remote host
actually produced output on stderr, so both ckeck_by_ssh and
check_disk behave correctly.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=693831&group_id=29880




More information about the Devel mailing list