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?:confused: |
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. |
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 |
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. |
All times are GMT -5. The time now is 09:50 AM. |