[Nagios] Error: Template 'timman' specified in contact definition could not be not found (c
来源:互联网 发布:单片机交通灯设计c 编辑:程序博客网 时间:2024/06/05 06:24
Check nagios配置文件报错如下:
[nagios@2 etc]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-29-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Template 'timman' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/objects/contacts.cfg', starting on line 65)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
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.
2 查看报错内容
[nagios@2 etc]$ more /usr/local/nagios/etc/objects/contacts.cfg
......
define contact{
contact_name timman
use timman 这里报错,说无效的。
alias tim man
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-host-by-email
host_notification_commands notify-host-by-email
email mchdba@sohu.com
pager xxxxxx
}
define contactgroup{
contactgroup_name ops
alias pl ops team
members timman,nagiosadmin
}
3 将timman换成generic-contact
vi /usr/local/nagios/etc/objects/contacts.cfg
use timman
替换成
use generic-contact
4 重新检测,Check下
[nagios@2 etc]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-29-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
[nagios@cache-2 etc]$
- [Nagios] Error: Template 'timman' specified in contact definition could not be not found (c
- The specified module could not be found
- The specified module could not be found
- GetModuleFileName False failed with error 126 (The specified module could not be found)
- OpenCV3.1 + Python2.7 error "DLL load failed: The specified module could not be found"
- IIS出现The specified module could not be found解决方法
- IIS出现The specified module could not be found解决方法
- A server with the specified hostname could not be found.
- Error:JAVA_HOME is not set and could not be found
- ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in
- ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in
- 解决node-ffi在Windows XP上使用出现“Error: The specified procedure could not be found”的错误
- SEVERE: Could not contact localhost:8005. Tomcat may not be running error while shutting down tomcat
- 在keychain tool里,Request a certificate时,出错''The specified item could not be found in the keychain"
- Configure: error: XML configuration could not be found 解决办法
- configure: error: XML configuration could not be found
- Default clip could not be found in attached animations list
- App Mynewsite could not be found. Is it in INSTALLED_APPS?
- 物联网厂家---慧感嘉联简介
- Linux C 编程内存泄露检测工具(一):mtrace
- DB2 数据库创建、IXF格式 表的导出导入。
- zoj 3777 Problem Arrangement(壮压+背包)
- Mac OS X 10.9.3 Beta 8升级教程
- [Nagios] Error: Template 'timman' specified in contact definition could not be not found (c
- UI设计大全汇聚国内外最棒的设计网站
- HTML <!DOCTYPE> 标签
- 前端工程师的修真秘籍(css、javascript和其它)
- iOS开发工具系列:那些Xcode插件收集
- ajax解析结合json格式
- 在cocos2d-x中使用DragonBones实现骨骼动画
- malloc 与 new的区别
- Divide Two Integers