linux下nagios插件报错!!
安装Nagios的插件nagios-plugin
[root@UnixHot src]# tar xvf nagios-plugins-1.4.13.tar.gz
[root@UnixHot src]# cd nagios-plugins-1.4.13
[root@UnixHot nagios-plugins-1.4.13]# ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios
[root@UnixHot nagios-plugins-1.4.13]# make
就报错了啊!!
错误如许下:
if gcc -DLOCALEDIR="/usr/local/nagios//share/locale" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/usr/local/ssl/include -I/usr/local/ssl/include -g -O2 -MT check_http.o -MD -MP -MF ".deps/check_http.Tpo" -c -o check_http.o check_http.c; \
then mv -f ".deps/check_http.Tpo" ".deps/check_http.Po"; else rm -f ".deps/check_http.Tpo"; exit 1; fi
check_http.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `/mnt/nagios-plugins-1.4.13/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/nagios-plugins-1.4.13'
make: *** [all] Error 2
很急啊!!在线等啊!!希望能得到大家的帮助!!
[解决办法]
换个版本试试
nagios-plugins-1.4.15.tar.gz
http://www.nagios.org/download/plugins
[解决办法]
因为你的系统可能没有安装openssl的问题 用的啥系统 安装一下吧 如果是centos fedora之类的
yum -y install openssl openssl-devel
如果是debian或者ubuntu 就执行
sudo apt-get update
sudo apt-get install openssl libssl-dev
然后再make