[Bug 231007] [NEW] check_radius command uses wrong syntax
Erik Forsberg
forsberg at efod.se
Fri May 16 09:44:04 BST 2008
Public bug reported:
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
<nagiosplug-devel at lists.sourceforge.net>
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
** Affects: nagios-plugins (Ubuntu)
Importance: Undecided
Status: New
--
check_radius command uses wrong syntax
https://bugs.launchpad.net/bugs/231007
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios-plugins in ubuntu.
More information about the Ubuntu-server-bugs
mailing list