I'm trying to install Nagios Core 4.4.6 on my Ubuntu 20.04, and I think it went pretty well.
But when I tried to install the respective plugins (2.3.3) from this guide:https://support.nagios.com/kb/article/n ... tml#Ubuntu I encountered an unfamiliar error:
Code: Select all
ccduser@ccduser-virtual-machine:~/Downloads/nagios-plugins-release-2.3.3$ sudo make install
[sudo] password for ccduser:
Making install in gl
make[1]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
make install-recursive
make[2]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
make[3]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
make[4]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
if test yes = no; then \
case 'linux-gnu' in \
darwin[56]*) \
need_charset_alias=true ;; \
darwin* | cygwin* | mingw* | pw32* | cegcc*) \
need_charset_alias=false ;; \
*) \
need_charset_alias=true ;; \
esac ; \
else \
need_charset_alias=false ; \
fi ; \
if $need_charset_alias; then \
/bin/bash ../build-aux/mkinstalldirs /usr/local/nagios/lib ; \
fi ; \
if test -f /usr/local/nagios/lib/charset.alias; then \
sed -f ref-add.sed /usr/local/nagios/lib/charset.alias > /usr/local/nagios/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /usr/local/nagios/lib/charset.tmp /usr/local/nagios/lib/charset.alias ; \
rm -f /usr/local/nagios/lib/charset.tmp ; \
else \
if $need_charset_alias; then \
sed -f ref-add.sed charset.alias > /usr/local/nagios/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /usr/local/nagios/lib/charset.tmp /usr/local/nagios/lib/charset.alias ; \
rm -f /usr/local/nagios/lib/charset.tmp ; \
fi ; \
fi
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
make[3]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
make[2]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
make[1]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/gl'
Making install in tap
make[1]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/tap'
make[2]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/tap'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/tap'
make[1]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/tap'
Making install in lib
make[1]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib'
Making install in .
make[2]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib'
make[3]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib'
make[2]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib'
Making install in tests
make[2]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib/tests'
make[3]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib/tests'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib/tests'
make[2]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib/tests'
make[1]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/lib'
Making install in plugins
make[1]: Entering directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/plugins'
2.3.3.git
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/include/postgresql -I/usr/include -DNP_VERSION='"2.3.3.git"' -g -O2 -MT check_radius.o -MD -MP -MF .deps/check_radius.Tpo -c -o check_radius.o check_radius.c
check_radius.c: In function ‘main’:
check_radius.c:205:20: warning: implicit declaration of function ‘rc_get_ipaddr’; did you mean ‘rc_get_srcaddr’? [-Wimplicit-function-declaration]
205 | if ((client_id = rc_get_ipaddr(nasipaddress)) == 0)
| ^~~~~~~~~~~~~
| rc_get_srcaddr
check_radius.c:71:31: warning: implicit declaration of function ‘rc_own_ipaddress’; did you mean ‘my_rc_own_ipaddress’? [-Wimplicit-function-declaration]
71 | #define my_rc_own_ipaddress() rc_own_ipaddress(rch)
| ^~~~~~~~~~~~~~~~
check_radius.c:208:20: note: in expansion of macro ‘my_rc_own_ipaddress’
208 | if ((client_id = my_rc_own_ipaddress ()) == 0)
| ^~~~~~~~~~~~~~~~~~~
check_radius.c:65:32: error: too few arguments to function ‘rc_send_server’
65 | #define my_rc_send_server(a,b) rc_send_server(rch,a,b)
| ^~~~~~~~~~~~~~
check_radius.c:225:11: note: in expansion of macro ‘my_rc_send_server’
225 | result = my_rc_send_server (&data, msg);
| ^~~~~~~~~~~~~~~~~
In file included from check_radius.c:51:
/usr/local/include/freeradius-client.h:521:5: note: declared here
521 | int rc_send_server(rc_handle const*, SEND_DATA *, char *, unsigned flags);
| ^~~~~~~~~~~~~~
make[1]: *** [Makefile:2274: check_radius.o] Error 1
make[1]: Leaving directory '/home/ccduser/Downloads/nagios-plugins-release-2.3.3/plugins'
make: *** [Makefile:1587: install-recursive] Error 1
Any help will be greatly appreciated!