check_radius command uses wrong syntax

Bug #231007 reported by Erik Forsberg
4
Affects Status Importance Assigned to Milestone
nagios-plugins (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: nagios-plugins

In /etc/nagios-plugins/conf/radius.cfg, a 'check_radius' command is defined as follows:

# 'check_radius' command definition
define command{
 command_name check_radius
 command_line /usr/lib/nagios/plugins/check_radius $ARG1$ $ARG2$ $HOSTADDRESS$ 1812 $ARG3$
 }

This doesn't concur with the commandline help of /usr/lib/nagios/plugins/check_radius:

/usr/lib/nagios/plugins/check_radius --help
check_radius v1859 (nagios-plugins 1.4.11)
Copyright (c) 1999 Robert August Vincent II
Copyright (c) 2000-2006 Nagios Plugin Development Team
        <email address hidden>

Tests to see if a RADIUS server is accepting connections.

Usage:check_radius -H host -F config_file -u username -p password [-n nas-id] [-P port]
                  [-t timeout] [-r retries] [-e expect]

Options:
 -h, --help
    Print detailed help screen
 -V, --version
    Print version information
 -H, --hostname=ADDRESS
    Host name, IP Address, or unix socket (must be an absolute path)
 -P, --port=INTEGER
    Port number (default: 1645)
 -u, --username=STRING
    The user to authenticate
 -p, --password=STRING
    Password for autentication (SECURITY RISK)
 -n, --nas-id=STRING
    NAS identifier
 -F, --filename=STRING
    Configuration file
 -e, --expect=STRING
    Response string to expect from the server
 -r, --retries=INTEGER
    Number of times to retry a failed connection
 -t, --timeout=INTEGER
    Seconds before connection times out (default: 10)
<removed a long text>

I personally use this definition instead:

define command {
 command_name check_radius
 command_line /usr/lib/nagios/plugins/check_radius -H $HOSTADDRESS$ -F /etc/radiusclient/radiusclient.conf -u $ARG1$ -p $ARG2$ -t 10
}

# lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
# apt-cache policy nagios-plugins
nagios-plugins:
  Installed: 1.4.11-1ubuntu5
  Candidate: 1.4.11-1ubuntu5
  Version table:
 *** 1.4.11-1ubuntu5 0
        500 http://se.archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Thierry Carrez (ttx)
Changed in nagios-plugins:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

Fixed in Jaunty by updating nagios-plugins to 1.4.12-4ubuntu1

Changed in nagios-plugins:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.