[Nagios] Error: Template timman specified in contact definition could not be
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:
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 xx@sohu.com
pager xxxx
}
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:
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]$
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26230597/viewspace-1156499/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource couldAI
- 解決IDEA Error:Output directory is not specifiedIdeaError
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- Fatal error: Uncaught PDOException: could not find driverErrorException
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- SpringBoot+ajax踩的坑Error resolving template, template might not exist or might not be accessibleSpring BootError
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- Git bash Error: Could not fork child process: There are no available terminals (-1)GitErrorAI
- 偶遇ERROR 1071 (42000): Specified key was too long; max key length is 767 bytesError
- fatal: [192.168.65.128]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be senFalseError
- Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start ofAndroidErrorBATPackage
- Kettle: pentaho-server-ce-9.4 : ERROR [SchemaUpdate] could not get database metadataServerErrorDatabase
- 執行maven專案出現Error:java: JDK isn‘t specified for module ‘XXX‘MavenErrorJavaJDK
- OpenAPI definition(示例)API
- nagios mail告警通知iOSAI
- 初始配置:IntelliJ Android無法執行專案並報錯Error: Module not specifiedIntelliJAndroidError
- 升級pip報錯ERROR: Could not install packages due to an OSError: [WinError 5]ErrorPackage
- [報錯:字元太長] SQLSTATE [42000]: Syntax error or access violation: 1071 Specified key was t oo long;字元SQLError
- 20190218-學習python使用shelve遇到raise error, “db type could not be determined”PythonAIError
- Nagios安裝步驟iOS
- SAP Spartacus Definition of Done
- 記錄:yum Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error解決CloudError
- Nagios+PNP安裝部署iOS
- 類定義(class definition)
- typedef and struct inside class definition?StructIDE
- go text/template & Consul-templateGo
- No input file specified.
- Oracle案例06—— OGG-01098 Could not flush "./dirdat/e1000004383" (error 28, No space left on device)OracleErrordev
- ansible template
- CF924D Contact ATC
- template might not exist or might not be accessible by any of the configured Template Resolvers
- c++ 模板模板引數("Template Template Parameters")C++
- ES 筆記十四:Index Template 和 Dynamic Template筆記Index
- zero-shot-learning-definition-examples-comparison
- MySQL - DDL詳解(Data Definition Language)MySql
- 從根本解決windows安裝JDK出現error:could not open ‘...jvm.cfg‘的問題WindowsJDKErrorJVM
- springboot無法訪問templates下的html頁面和Error resolving template “xxx“的解決方案Spring BootHTMLError