nagios联系人邮箱错误导致nagios无法启动
2016-04-26 11:10
411 查看
Whoops!
Error: Could not read host and service status information!The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios.Some other things you should check in order to resolve this error include:Check the Nagios log file for messages relating to startup or status data errors.
Always verify configuration options using the -v command-line option before starting or restarting Nagios!
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
如上错误。
执行检查命令
此命令在nagios安装目录/bin目录中
./nagios -v ../etc/nagios.cfg
Error: Could not find any contact matching 'cookie' (config file '/usr/local/nagios/etc/objects/contacts.cfg', starting on line 97)
Error: Could not expand member contacts specified in contactgroup (config file '/usr/local/nagios/etc/objects/contacts.cfg', starting on line 97)
Error processing object config files!
显示联系人配置文件出错
打开contacts.cfg
检查第97行:
97define contactgroup{
98 contactgroup_name admins
99 alias Nagios Administrators
100 members xx,yy,cookie,zz
101 }
发现联系人组中有个成员名叫cookie,而在上面定义的联系人中并没有cookie这个成员,所以在组中将cookie成员删除
再次运行检查命令
./nagios -v ../etc/nagios.cfg
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
已无报错信息
service nagios start 正常启动
打开nagios站点,监控已正常
相关文章推荐
- iOS之谓词详解
- 我常去逛的iOS干货文章、blog等
- git 本地临时分支命名
- iOS可执行文件瘦身方法
- iOS最佳实践
- iOS性能优化
- iOS学习笔记73-iOS事件响应链中Hit-Test View的应用
- iOS开发的一些奇巧淫技
- 浅谈 iOS 版本号
- iOS开发多线程篇—单例模式(ARC)
- iOS中控制器的强引用释放问题
- iOS App集成Apple Pay教程(附示例代码)
- iOS 里面的常用数学函数
- IOS适配方法-标注篇
- ios开发中 线程、进程即多线程简单介绍
- iOS hot-patch框架 -- Rollout
- iOS中各种风格时间轴的设计及总结
- ios9横竖屏切换帖子
- iOS遍历程序内某个文件夹下所有文件的属性
- 《Motion Design for iOS》(三)