Check nagios configuration file reports the following error:
[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
Web: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Template 'timma' specified in contact definition cocould 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 shocould 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
'Whats new' section to find out what has changed.
2. view the error message.
[Nagios @ 2 etc] $ more/usr/local/nagios/etc/objects/contacts. cfg
......
Define contact {
Contact_name timman
Use timman: the error is invalid.
Alias tim man
Service_icationication_period 24x7
Host_icationication_period 24x7
Service_icationication_options w, u, c, r
Host_icationication_options d, u, r
Service_icationication_commands notify-host-by-email
Host_icationication_commands notify-host-by-email
Email mchdba@sohu.com
Pager 14782121512
}
Define contactgroup {
Contactgroup_name ops
Alias pl ops team
Members timman, nagiosadmin
}
3. Replace timman with generic-contact.
Vi/usr/local/nagios/etc/objects/contacts. cfg
Use timman
Replace
Use generic-contact
4. Check again.
[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
Web: 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] $