免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2445 | 回复: 3

[其他] nagios插件安装问题 [复制链接]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-04-14 06:20:00
发表于 2015-04-17 13:22 |显示全部楼层
小弟在安装naigos插件的时候,出现了点问题

环境是centos 6.4
安装的包
rpm -qa | grep gcc
gcc-gfortran-4.4.7-3.el6.x86_64
gcc-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.i686
gcc-java-4.4.7-3.el6.x86_64
compat-gcc-34-g77-3.4.6-19.el6.x86_64
gcc-gnat-4.4.7-3.el6.x86_64
compat-gcc-34-3.4.6-19.el6.x86_64
gcc-objc-4.4.7-3.el6.x86_64
compat-gcc-34-c++-3.4.6-19.el6.x86_64
gcc-objc++-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.x86_64
gcc-c++-4.4.7-3.el6.x86_64


make的时候通不过。。
百度了一圈,找不到结果,来问问论坛里的大大
问题现象
  1. # make
  2. make  all-recursive
  3. make[1]: Entering directory `/chenxi/nagios-plugins-1.4.9'
  4. Making all in gl
  5. make[2]: Entering directory `/chenxi/nagios-plugins-1.4.9/gl'
  6. make  all-am
  7. make[3]: Entering directory `/chenxi/nagios-plugins-1.4.9/gl'
  8. make[3]: Nothing to be done for `all-am'.
  9. make[3]: Leaving directory `/chenxi/nagios-plugins-1.4.9/gl'
  10. make[2]: Leaving directory `/chenxi/nagios-plugins-1.4.9/gl'
  11. Making all in lib
  12. make[2]: Entering directory `/chenxi/nagios-plugins-1.4.9/lib'
  13. Making all in tests
  14. make[3]: Entering directory `/chenxi/nagios-plugins-1.4.9/lib/tests'
  15. make[3]: Nothing to be done for `all'.
  16. make[3]: Leaving directory `/chenxi/nagios-plugins-1.4.9/lib/tests'
  17. make[3]: Entering directory `/chenxi/nagios-plugins-1.4.9/lib'
  18. make[3]: Nothing to be done for `all-am'.
  19. make[3]: Leaving directory `/chenxi/nagios-plugins-1.4.9/lib'
  20. make[2]: Leaving directory `/chenxi/nagios-plugins-1.4.9/lib'
  21. Making all in plugins
  22. make[2]: Entering directory `/chenxi/nagios-plugins-1.4.9/plugins'
  23. 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/include -I/usr/include    -g -O2 -MT check_pgsql.o -MD -MP -MF ".deps/check_pgsql.Tpo" -c -o check_pgsql.o check_pgsql.c; \
  24.         then mv -f ".deps/check_pgsql.Tpo" ".deps/check_pgsql.Po"; else rm -f ".deps/check_pgsql.Tpo"; exit 1; fi
  25. check_pgsql.c:71: error: ‘NAMEDATALEN’ undeclared here (not in a function)
  26. make[2]: *** [check_pgsql.o] Error 1
  27. make[2]: Leaving directory `/chenxi/nagios-plugins-1.4.9/plugins'
  28. make[1]: *** [all-recursive] Error 1
  29. make[1]: Leaving directory `/chenxi/nagios-plugins-1.4.9'
  30. make: *** [all] Error 2
复制代码

论坛徽章:
15
2015年辞旧岁徽章
日期:2015-03-03 16:54:15双鱼座
日期:2015-01-15 17:29:44午马
日期:2015-01-06 17:06:51子鼠
日期:2014-11-24 10:11:13寅虎
日期:2014-08-18 07:10:55酉鸡
日期:2014-04-02 12:24:51双子座
日期:2014-04-02 12:19:44天秤座
日期:2014-03-17 11:43:36亥猪
日期:2014-03-13 08:13:51未羊
日期:2014-03-11 12:42:03白羊座
日期:2013-11-20 10:15:18CU大牛徽章
日期:2013-04-17 11:48:45
发表于 2015-04-19 09:22 |显示全部楼层
本帖最后由 rdcwayx 于 2015-04-19 09:23 编辑

centos 6.4,还要从头make编译?

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-04-14 06:20:00
发表于 2015-04-21 12:19 |显示全部楼层
回复 2# rdcwayx


    什么叫从头make哦?

    就是在centos6。4中装nagios的插件,出现了这个问题,导致nagios插件不能make安装了

论坛徽章:
0
发表于 2015-04-30 17:07 |显示全部楼层
本帖最后由 xtlyk 于 2015-04-30 17:07 编辑

down.51cto/com/data/1980515
com前面的/换成.
nagios-2.4.8一键安装脚本
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP