Radius server


#1

I’m trying to setup Nagios to monitor my Radius server. Howver, when I run the check_radius, I get an error stating :

/usr/lib/nagios/plugins/check_radius: error while loading shared libraries: libradiusclient.so.0: cannot open shared object file: No such file or directory

I did a locate and I found out that I have :

/usr/local/lib/libradiusclient.so.2.0.0
/usr/local/lib/libradiusclient.so.2
/usr/local/lib/libradiusclient.so
/usr/local/lib/libradiusclient.la
/usr/local/lib/libradiusclient.a
/usr/local/src/radiusclient-0.4.6/lib/.libs/libradiusclient.so.2.0.0
/usr/local/src/radiusclient-0.4.6/lib/.libs/libradiusclient.so.2
/usr/local/src/radiusclient-0.4.6/lib/.libs/libradiusclient.so
/usr/local/src/radiusclient-0.4.6/lib/.libs/libradiusclient.a
/usr/local/src/radiusclient-0.4.6/lib/.libs/libradiusclient.lai
/usr/local/src/radiusclient-0.4.6/lib/.libs/libradiusclient.la
/usr/local/src/radiusclient-0.4.6/lib/libradiusclient.la

Which is a new version of radius client. I then downloaded the newest nagios plugin 3.4, and tried installing it. But I get an error stating :

check_radius.c: In function main': check_radius.c:121: warning: passing arg 1 ofrc_conf_str’ from incompatible pointer type
check_radius.c:121: error: too few arguments to function rc_conf_str' check_radius.c:121: warning: passing arg 1 ofrc_read_dictionary’ from incompatible pointer type
check_radius.c:121: error: too few arguments to function rc_read_dictionary' check_radius.c:126: warning: passing arg 1 ofrc_avpair_add’ from incompatible pointer type
check_radius.c:126: warning: passing arg 2 of rc_avpair_add' makes pointer from integer without a cast check_radius.c:126: warning: passing arg 3 ofrc_avpair_add’ makes integer from pointer without a cast
check_radius.c:126: error: too few arguments to function rc_avpair_add' check_radius.c:127: warning: passing arg 1 ofrc_avpair_add’ from incompatible pointer type
check_radius.c:127: warning: passing arg 2 of rc_avpair_add' makes pointer from integer without a cast check_radius.c:127: warning: passing arg 3 ofrc_avpair_add’ makes integer from pointer without a cast
check_radius.c:127: error: too few arguments to function rc_avpair_add' check_radius.c:128: warning: passing arg 1 ofrc_avpair_add’ from incompatible pointer type
check_radius.c:128: warning: passing arg 2 of rc_avpair_add' makes pointer from integer without a cast check_radius.c:128: warning: passing arg 3 ofrc_avpair_add’ makes integer from pointer without a cast
check_radius.c:128: error: too few arguments to function rc_avpair_add' check_radius.c:129: warning: passing arg 1 ofrc_avpair_add’ from incompatible pointer type
check_radius.c:129: warning: passing arg 2 of rc_avpair_add' makes pointer from integer without a cast check_radius.c:129: warning: passing arg 3 ofrc_avpair_add’ makes integer from pointer without a cast
check_radius.c:129: error: too few arguments to function rc_avpair_add' check_radius.c:136: error: too few arguments to functionrc_own_ipaddress’
check_radius.c:139: warning: passing arg 1 of rc_avpair_add' from incompatible pointer type check_radius.c:139: warning: passing arg 2 ofrc_avpair_add’ makes pointer from integer without a cast
check_radius.c:139: warning: passing arg 3 of rc_avpair_add' makes integer from pointer without a cast check_radius.c:139: error: too few arguments to functionrc_avpair_add’
check_radius.c:143: warning: passing arg 1 of rc_buildreq' from incompatible pointer type check_radius.c:143: warning: passing arg 2 ofrc_buildreq’ makes pointer from integer without a cast
check_radius.c:143: warning: passing arg 3 of rc_buildreq' makes integer from pointer without a cast check_radius.c:143: warning: passing arg 4 ofrc_buildreq’ makes pointer from integer without a cast
check_radius.c:143: error: too few arguments to function rc_buildreq' check_radius.c:145: warning: passing arg 1 ofrc_send_server’ from incompatible pointer type
check_radius.c:145: warning: passing arg 2 of rc_send_server' from incompatible pointer type check_radius.c:145: error: too few arguments to functionrc_send_server’
make[2]: *** [check_radius.o] Error 1

Can anyone please advise. Thanks in advance :frowning:


#2

I don’t use check_radius but doesn’t it rely on an external config file as well? There some pointers in an old netsaint post here
lists.debian.org/debian-isp/2002 … 00075.html
Could you post the full command that you are running and the output from check_radius --help


#3

I don’t use check_radius but doesn’t it rely on an external config file as well? There some pointers in an old netsaint post here
lists.debian.org/debian-isp/2002 … 00075.html
Could you post the full command that you are running and the output from check_radius --help