LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-30-2004, 10:27 AM   #1
posixjunkie
Member
 
Registered: Jan 2004
Location: NJ
Posts: 33

Rep: Reputation: 15
nagios_plugins install problem


whenever i try to compile nagios plugins i get the following errors

check_radius.c: In function `main':
check_radius.c:167: error: too few arguments to function `rc_avpair_add'
check_radius.c:168: error: too few arguments to function `rc_avpair_add'
check_radius.c:169: error: too few arguments to function `rc_avpair_add'
check_radius.c:179: error: too few arguments to function `rc_avpair_add'
check_radius.c:185: error: too few arguments to function `rc_send_server'
make[2]: *** [check_radius.o] Error 1



...any ideas?
 
Old 05-30-2004, 10:43 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Are you sure that there wasn't more information above that? Which version of the plugins are you using?

If it is only a problem with the radius plugin then just ignore it if you don't intend to monitor any radius services.
 
Old 06-01-2004, 08:09 PM   #3
posixjunkie
Member
 
Registered: Jan 2004
Location: NJ
Posts: 33

Original Poster
Rep: Reputation: 15
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I.. -I../lib -I/usr/include/ldap -Iyes/include -O2 -march=athlon-xp -pipe -c `test -f 'check_radius.c' || echo './'`check_radius.c
check_radius.c: In function `main':
check_radius.c:167: error: too few arguments to function `rc_avpair_add'
check_radius.c:168: error: too few arguments to function `rc_avpair_add'
check_radius.c:169: error: too few arguments to function `rc_avpair_add'
check_radius.c:179: error: too few arguments to function `rc_avpair_add'
check_radius.c:185: error: too few arguments to function `rc_send_server'
make[2]: *** [check_radius.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/nagios-plugins-1.3.1-r1/work/nagios-plugins-1.3.1/plugins'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/nagios-plugins-1.3.1-r1/work/nagios-plugins-1.3.1/plugins'
make: *** [all-recursive] Error 1

!!! ERROR: net-analyzer/nagios-plugins-1.3.1-r1 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! (no error message)

don't exactly have the option of ignoring it, would like radius to work with it as well
thanks for the input
 
Old 04-06-2005, 07:52 AM   #4
RJ76
LQ Newbie
 
Registered: Sep 2004
Location: UK
Distribution: RHEL 4; RHEL 5; CentOS 4; Slackware 10.2
Posts: 28

Rep: Reputation: 15
Hi,

I had the exact same problem yesterday on a Slack 10.1 box when compiling the Nagios plugins:

check_radius.c: In function `main':
check_radius.c:167: error: too few arguments to function `rc_avpair_add'
check_radius.c:168: error: too few arguments to function `rc_avpair_add'
check_radius.c:169: error: too few arguments to function `rc_avpair_add'
check_radius.c:179: error: too few arguments to function `rc_avpair_add'
check_radius.c:185: error: too few arguments to function `rc_send_server'

As I didn`t need to monitor radius then I opened the check_radius.c source file, commented out the calls to rc_avpair_add and rc_send_server and recompiled without a problem.

I know you said you needed to monitor radius which kind of makes this advice a bit pointless on first glance, but I found that when I hit this error, all subsequent plugins wouldn`t compile. At least this way you can get all of the other plugins to compile and work whilst you try to find a fix for the radius plugin problem if this is a possible scenario for you.

I couldn`t find an actual fix for this during my efforts yesterday, I found a few references to it. Its possible that it may be fixed in future releases of the plugins, or it needs a newer version of some software or module installed.

...just a thought.

Hope you manage to get it fixed as Nagios is well worth the hassle of its setup and configuration.

Last edited by RJ76; 04-06-2005 at 07:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
install problem Ljmndrc SUSE / openSUSE 1 05-22-2005 09:40 AM
Slack 10.1 Install Problem(During Package Install) terdbird Slackware - Installation 2 04-22-2005 02:18 PM
problem after problem with kopete 0.8.4 install starking Linux - Software 0 08-13-2004 08:11 AM
dhcp problem in Debian netinst install..Help !! install. copter Linux - Networking 11 06-30-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration