[Pkg-nagios-devel] Bug#582272: Bug#582272: nagios-plugins-basic: ssh_disk quoting in disk.cfg wrong

Jan Wagner waja at cyconet.org
Thu May 20 10:05:34 UTC 2010


Hi Paul,

On Thursday 20 May 2010 11:46:42 Paul Slootman wrote:
> I didn't try ssh_disk_4.

this works here out of the box.

> > Could you please try the following:
> >
> > command_line    /usr/lib/nagios/plugins/check_by_ssh -H '$HOSTADDRESS$'
> > -C '/usr/lib/nagios/plugins/check_disk -w '\''$ARG1$'\'' -c
> > '\''$ARG2$'\'' -e -p '\''$ARG3$'\'
>
> I think it's still missing things: after the $ARG3$ (-p option) I'd
> expect '\''' or similar; the quotes before the $ARG3 need to be matched,
> as well as the quote enclosing the entire -C string.
> As I said, wierd quoting and funky escaping :-)

ssh_disk works with the following:

command_line    /usr/lib/nagios/plugins/check_by_ssh -H '$HOSTADDRESS$' -C '/usr/lib/nagios/plugins/check_disk -w '\''$ARG1$'\'' -c '\''$ARG2$'\'' -e -p '\''$ARG3$'\'

With kind regards, Jan.
-- 
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V- PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++ 
------END GEEK CODE BLOCK------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20100520/d91b3ed0/attachment.pgp>


More information about the Pkg-nagios-devel mailing list