[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 07:16:23 UTC 2010


Hi Paul,

thanks for reporting the problem.

On Wednesday 19 May 2010 18:38:33 Paul Slootman wrote:
> >From /usr/share/nagios-plugins/templates-basic/disk.cfg :
>
> # 'ssh_disk' command definition
> define command{
>         command_name    ssh_disk
>         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$'\' }
>
> The command_line has some wierd quoting and escaping going on.
> This is confirmed by the fact it simply doesn't work, if I try to use it:
>
> Status Information:     Usage: check_by_ssh -H <host> -C <command> [-fqv]
> [-1 [-S [lines]] [-E [lines]] [-t timeout] [-i identity] [-l user] [-n
> name] [-s servicelist] [-O outputfile] [-p port] [-o ssh-option]
> Performance Data:       -2] [-4|-6]

Just a wild guess, but I think just "ssh_disk" is broken and "ssh_disk_4"
works? ssh_disk is missing a "'\'".
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$'\'

Thanks and 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/61a2cdcb/attachment.pgp>


More information about the Pkg-nagios-devel mailing list