[Nagios] Error:template ' Timman ' specified in the contact definition could not being not found (c

Source: Internet
Author: User

The Check nagios configuration file has the following error:


[Email protected] 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 the contact definition could not being not found (config file '/usr/local/nagios/etc/object S/contacts.cfg ', starting on line 65)
Error Processing Object Config files!




> One or more problems is encountered while processing the config files ...


Check your configuration file (s) to ensure that they contain valid
directives and data defintions. If you is upgrading from a previous
Version of Nagios, you should is aware that some variables/definitions
May has 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 the find out who has changed.


2 Viewing the error content

[Email protected] etc]$ more/usr/local/nagios/etc/objects/contacts.cfg

......

Define Contact{
Contact_Name Timman
Use Timman here An error, said invalid.
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 [email protected]
Pager 14782121512
}




Define Contactgroup{
Contactgroup_name Ops
Alias PL OPS Team
Members Timman,nagiosadmin
}


3 Replace the Timman with Generic-contact

Vi/usr/local/nagios/etc/objects/contacts.cfg

Use Timman

Replaced by

Use Generic-contact


4 Re-detection, check under

[Email protected] 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 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
[Email protected] etc]$

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.