[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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Error: Could not load module '/usr/local/nagios/bin/ndo2ErroriOS
- nagios 升級遇到的坑 CHECK_NRPE: Error - Could not complete SSL handshake.iOSError
- 【DataGuard】 TNS:could not resolve the connect identifier specifiedIDE
- Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!iOS
- CRS-4639: Could not contact Oracle High Availability ServicesOracleAI
- One cause leads to the error(The specified nodes are not clusterable)Error
- 解決IDEA Error:Output directory is not specifiedIdeaError
- ERROR: Could not delete DB checkpoint for REPLICATErrordelete
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource couldAI
- Fatal error: Uncaught PDOException: could not find driverErrorException
- Error: The action can not be performed because ...could not be locked?ErrorORM
- Xtrabackup恢復時報錯'Error: datadir must be specified'Error
- CRS-4639: Could not contact Oracle High Availability Services解決方案集OracleAI
- ORA-12154: TNS:could not resolve the connect identifier specifiedIDE
- ORA-12154: TNS: could not resolve the connect identifier specifiedIDE
- Error:The specified shared raw partition /dev/raw/raw1...Errordev
- psql: error: could not connect to server: No such file or directorySQLErrorServer
- OGG-00446 ERROR: Could not find archived logErrorHive
- CRS-0184:CRS-4639: Could not contact Oracle High Availability ServicesOracleAI
- nagios監控windows 報NSClient - ERROR: Invalid passwordiOSWindowsclientError
- ogg GGS ERROR 500 Could not find archived logErrorHive
- Last_SQL_Error: Could not execute Update_rows eventASTSQLError
- SQL error 2812: Could not find stored procedure.docSQLError
- cmake報錯CMake Error: Could not find CMAKE_ROOTError
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values:ErroriOS
- MySQL 5.5 報錯"ERROR 1075 (42000): Incorrect table definition"MySqlError
- Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.iOSError
- Docker 啟動 Centos 映象 提示"Error response from daemon: No command specified"DockerCentOSError
- master bug InnoDB Error unlock row could not find a 4 mode lockASTError
- SpringBoot+ajax踩的坑Error resolving template, template might not exist or might not be accessibleSpring BootError
- Oracle案例09——ORA-12154: TNS:could not resolve the connect identifier specifiedOracleIDE
- 記錄CDH安裝的一個坑:could not contact scm server at localhost:7182, giving upServerlocalhost
- Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specifiedOracle 10gIDE
- Git bash Error: Could not fork child process: There are no available terminals (-1)GitErrorAI
- MysqL錯誤之_ERROR! MySQL server PID file could not be found!MySqlErrorServer
- FATAL ERROR: Could not find ./bin/my_print_defaults 解決方法Error
- CHECK_NRPE: Error - Could not complete SSL handshake.Error