check_radius.py attributes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_radius.py attributes

Post by ssax »

The bug report has been submitted to development so they have been notified about it but we are unable to give an ETA on it. Development works them in their own priorities.

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_adv
See the help:

Code: 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 menu
See the samplefile.txt here:

https://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 -v
test.attr:

Code: Select all

#Attrib #Vendor #Type   # #Value
4       0       0       A X.X.X.X
Locked