[Pkg-nagios-devel] Bug#715730: [Mayhem] Bug report on nagios-plugins-basic: check_by_ssh crashes with exit status 139

Jim Barber jim.barber at ddihealth.com
Mon Jul 22 03:11:49 UTC 2013

I believe the problem is caused by the 'fix' to bug 709297.
The package maintainer has tried to introduce the ability to pass parameters
to Nagios checks by changing them from:

command_line    /usr/lib/nagios/plugins/check_ssh '$HOSTADDRESS$'


command_line    /usr/lib/nagios/plugins/check_ssh '$HOSTADDRESS$' '$ARG1$'

If no extra arguments are passed, it forces an empty parameter to be passed
to the command which causes a problem.

I suspect the fix it not to wrap the $ARG1$ within quotes like so:

command_line    /usr/lib/nagios/plugins/check_ssh '$HOSTADDRESS$' $ARG1$

This means the parameters passed by the user can still be done, but if nothing was
passed, does not result in an empty positional parameter being passed to the command.


Jim Barber

More information about the Pkg-nagios-devel mailing list