免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2494 | 回复: 2
打印 上一主题 下一主题

[系统安装] Nagios安装问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-01-14 16:33 |只看该作者 |倒序浏览
在验证nagios配置文件时,报了这个错,菜鸟真心不知道该怎么办了
[root@localhost objects]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.4.3
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-30-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/services.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/windows.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Error: Contact group 'admins' specified in service 'check-host-alive' for host 'Nagios-Linux' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Load' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Current Users' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'HTTP' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'PING' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Root Partition' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'SSH' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Swap Usage' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Total Processes' for host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in service 'C:\ Drive Space' for host 'Nagios-Windows' is not defined anywhere!
Error: Contact group 'admins' specified in service 'CPU Load' for host 'Nagios-Windows' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Explorer' for host 'Nagios-Windows' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Memory Usage' for host 'Nagios-Windows' is not defined anywhere!
Error: Contact group 'admins' specified in service 'NSClient++ Version' for host 'Nagios-Windows' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Uptime' for host 'Nagios-Windows' is not defined anywhere!
Error: Contact group 'admins' specified in service 'W3SVC' for host 'Nagios-Windows' is not defined anywhere!
        Checked 16 services.
Checking hosts...
Error: Contact group 'admins' specified in host 'Nagios-Linux' is not defined anywhere!
Error: Contact group 'admins' specified in host 'Nagios-Server' is not defined anywhere!
Error: Contact group 'admins' specified in host 'Nagios-Windows' is not defined anywhere!
        Checked 3 hosts.
Checking host groups...
        Checked 3 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 24 commands.
Checking time periods...
        Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   19

***> One or more problems was encountered while running the pre-flight check...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.

论坛徽章:
0
2 [报告]
发表于 2014-01-14 17:21 |只看该作者
已解决问题!

论坛徽章:
9
寅虎
日期:2014-06-03 14:10:05午马
日期:2015-01-08 16:49:52白羊座
日期:2015-01-16 12:58:182015年迎新春徽章
日期:2015-03-04 09:57:092015元宵节徽章
日期:2015-03-06 15:51:33NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2015-08-04 06:20:0015-16赛季CBA联赛之北京
日期:2015-12-14 09:40:0315-16赛季CBA联赛之青岛
日期:2016-07-25 11:23:07
3 [报告]
发表于 2014-05-23 16:41 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP