[Pkg-nagios-devel] Bug#482942: check_radius changed syntax, command definition never updated

Josip Rodin joy at debbugs.entuzijast.net
Tue May 27 22:49:22 UTC 2008


On Mon, May 26, 2008 at 02:04:10AM +0200, Josip Rodin wrote:
> Package: nagios-plugins-standard
> Version: 1.4.5-1etch1
> 
> Hi,
> 
> /etc/nagios-plugins/config/radius.cfg says:
> 
> define command{
>         command_name    check_radius
>         command_line    /usr/lib/nagios/plugins/check_radius $ARG1$ $ARG2$ $HOSTADDRESS$ 1812 $ARG3$
>         }
> 
> However, that's useless, and has been for a while (several years now),
> because the program simply doesn't take arguments like that.

While reading check_radius.c, I noticed that there is actually a special
case in the program for handling such a series of unqualified arguments,
but it never triggers, because it doesn't want those five, but another set
of eight arguments.

Since we have to change it anyway, we should use the normal getopt syntax
rather than rely on another special case, so this is JFTR.

-- 
     2. That which causes joy or happiness.





More information about the Pkg-nagios-devel mailing list