CHECK_RADIUS

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
christudorache
Posts: 15
Joined: Fri Sep 19, 2014 2:32 pm

CHECK_RADIUS

Post by christudorache »

I have a check_radius from nagios to our radius server. At first it could not find the libradiusclient-ng.so.2 file so I copied it to the /usr/lib64/ directory but now it's complaining about ./check_radius: symbol lookup error: ./check_radius: undefined symbol: rc_read_config. Where do I define the symbol rc_read_config?
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: CHECK_RADIUS

Post by rhassing »

Where did you copy it from?
What distro are you using?

If you are using CentOS you could use yum to install radiusclient-ng as a package. This contains the right libraries.

This only works if you have the right repositories installed.
radiusclient-ng is available on several repository servers.

Code: Select all

yum search  radiusclient-ng
If this does not find the package, you might want to add one of the following repositories:
  • EPEL
    RPMForge
    ATRpms
Please search google for the installation of the repositories.
Rob Hassing
Image
christudorache
Posts: 15
Joined: Fri Sep 19, 2014 2:32 pm

Re: CHECK_RADIUS

Post by christudorache »

I copied it from another directory on the server /usr/lib/freeradius/libradiusclient-ng.so.2. I'm running SUSE Linux Enterprise Server 11 SP3 (SLES) I can't install libradiusclient-ng because it's not being found in zypper or yast2.
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: CHECK_RADIUS

Post by rhassing »

I'm not that familiar with SUSE, but I think rpms are availabe for SUSE as well
After a short search on Google, I found the following:
http://download.opensuse.org/repositori ... x86_64.rpm
Rob Hassing
Image
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_RADIUS

Post by lmiltchev »

christudorache, were you able to install the "libradiusclient-ng" package?

After downloading the rpm from the link, provided by rhassing, you can install it by running:

Code: Select all

rpm -ivh radiusclient-ng-0.5.6-3.1.x86_64.rpm
or

Code: Select all

yast2 -i radiusclient-ng-0.5.6-3.1.x86_64.rpm
Be sure to check out our Knowledgebase for helpful articles and solutions!
christudorache
Posts: 15
Joined: Fri Sep 19, 2014 2:32 pm

Re: CHECK_RADIUS

Post by christudorache »

I am trying to, however; the repository cannot be found

# rpm -ivh radiusclient-ng-0.5.6-3.1.x86_64.rpm
error: open of radiusclient-ng-0.5.6-3.1.x86_64.rpm failed: No such file or directory

zypper install radiusclient-ng-0.5.6-3.1.x86_64.rpm
Specified local path does not exist or is not accessible.
Problem retrieving the specified RPM file:
Malformed URI:
Please check whether the file is accessible.
Problem with the RPM file specified as 'radiusclient-ng-0.5.6-3.1.x86_64.rpm', skipping.
No valid arguments specified.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_RADIUS

Post by lmiltchev »

Where did you download it? You can run the above commands if you are in the same directory. Otherwise, you will need to provide the full path to the file:

Code: Select all

rpm -ivh /path/to/the/radiusclient-ng-0.5.6-3.1.x86_64.rpm
Be sure to check out our Knowledgebase for helpful articles and solutions!
christudorache
Posts: 15
Joined: Fri Sep 19, 2014 2:32 pm

Re: CHECK_RADIUS

Post by christudorache »

I tried another rpm file but this time it gave me another error.

warning: radiusclient-ng-0.5.6-3.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 11ac8ecc
error: Failed dependencies:
libradiusclient-ng.so.2()(64bit) is needed by radiusclient-ng-0.5.6-3.1.x86_64

I believe I need the librariusclient-ng.so.2 but I do not know where to get it from.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_RADIUS

Post by lmiltchev »

You can try downloading and installing some of the other RPMs from this page in order to resolve dependencies. I think this may be the file you need but I am not 100% sure:

http://download.opensuse.org/repositori ... x86_64.rpm
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked