Until development is able to fix it you will need to use another plugin such as this:
https://exchange.nagios.org/directory/P ... dv/details
Which can be installed/tested like this:
Code: Select all
cd /tmp
mkdir check_radius_adv
cd /tmp/check_radius_adv/
wget 'https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=295&cf_id=29' -O check_radius_adv_2006_08_23.tar.gz
gunzip check_radius_adv_2006_08_23.tar.gz
tar xvf check_radius_adv_2006_08_23.tar
./configure
make all
cp check_radius_adv /usr/local/nagios/libexec/
chown nagios.nagios /usr/local/nagios/libexec/check_radius_adv
chmod ug+x /usr/local/nagios/libexec/check_radius_advCode: Select all
[nagios@xiserver]# /usr/local/nagios/libexec/check_radius_adv -h
check_radius_adv
Usage: # /usr/local/nagios/libexec/check_radius_adv [OPTIONS]...
OPTIONS
-v verbose (output with verification)
-u [username] cleartext username
-p [password] cleartext password
-s [shared secret] shared secret for RADIUS server
-r [radius server] radius server to auth
-c [radius port] radius server port (default: 1812)
-t [auth timeout] interval to wait until auth timeout in seconds (default: 30 sec.)
-a [attributes] filename of the attributes file (see samplefile)
-o [ok state] auth reply code which will return ok state (default: 2 = accepted)
-e [error code] plugin error-code in case reply code differs (default: 2 = critical)
-m [replymsg] expected replymsg (type=18) (default: "")
-h this menuhttps://exchange.nagios.org/directory/P ... dv/details
Test:
Code: Select all
/usr/local/nagios/libexec/check_radius_adv -u '[email protected]' -p 'password' -s 'secret' -r X.X.X.X -a /usr/local/nagios/libexec/test.attr -vCode: Select all
#Attrib #Vendor #Type # #Value
4 0 0 A X.X.X.X