Error: contacttemplates.cfg : No such file
Error: contacttemplates.cfg : No such file
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
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.
When I check /usr/local/nagios/etc/ its EMPTY ?
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or directory
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.
When I check /usr/local/nagios/etc/ its EMPTY ?
================================-
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error: contacttemplates.cfg : No such file
Please run the following, we need to find this file:
/usr/local/nagios/etc/ is completely empty?? That is not standard in the least bit. Have any serious modifications been made to this system? Any perhaps, misused SED commands? You should not be able to even verify the configuration files, or start nagios if there is no nagios.cfg file, and that resides in /usr/local/nagios/etc...
When you ran this:
It shows that there must be at least a nagios.cfg in that directory.
Code: Select all
yum install mlocate
updatedb
locate contacttemplates.cfg
locate nagios.cfgWhen you ran this:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgCode: Select all
ls -ll /usr/local/nagios/etc/Re: Error: contacttemplates.cfg : No such file
Its a new install
NAGIOSQL LOGIN FAILED! at E-importnagiosql
rpmforge package for ppc64 does not exist so i install ppc rpm
I installed mlocate.ppc64 0:0.22.2-4.el6 now , it was not installed by ./fullinstall script before
still can't locate contacttemplate.cfg command but can locate nagios.cfg
#locate nagios.cfg
/usr/local/nagios/etc/nagios.cfg
Attaching install.log
NAGIOSQL LOGIN FAILED! at E-importnagiosql
rpmforge package for ppc64 does not exist so i install ppc rpm
I installed mlocate.ppc64 0:0.22.2-4.el6 now , it was not installed by ./fullinstall script before
still can't locate contacttemplate.cfg command but can locate nagios.cfg
#locate nagios.cfg
/usr/local/nagios/etc/nagios.cfg
Attaching install.log
================================-
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Re: Error: contacttemplates.cfg : No such file
Its started at phase
PostgresQL status...
PostgresQL running - continuing...
Creating audit log database structure...
Audit log database schema created successfully.
Nagios XI Audit Log Initialized OK.
Nagios XI PostgresQL Database Initialized OK.
PHP Notice: Use of undefined constant DB_NAGIOSXI - assumed 'DB_NAGIOSXI' in /usr/local/nagiosxi/html/includes/db.inc.php on line 28
PHP Stack trace:
PHP 1. {main}() /usr/local/nagiosxi/scripts/patch_ndoutils.php:0
PHP 2. require_once() /usr/local/nagiosxi/scripts/patch_ndoutils.php:8
PHP 3. require_once() /usr/local/nagiosxi/html/config.inc.php:209
PHP 4. init_db_table_names() /usr/local/nagiosxi/html/includes/db.inc.php:15
PHP Notice: Undefined index: DB_NAGIOSXI in /usr/local/nagiosxi/html/includes/db.inc.php on line 130
PHP Stack trace:
PHP 1. {main}() /usr/local/nagiosxi/scripts/patch_ndoutils.php:0
PHP 2. require_once() /usr/local/nagiosxi/scripts/patch_ndoutils.php:8
PHP 3. require_once() /usr/local/nagiosxi/html/config.inc.php:209
PHP 4. init_db_table_names() /usr/local/nagiosxi/html/includes/db.inc.php:15
PHP 5. generate_table_name() /usr/local/nagiosxi/html/includes/db.inc.php:28
PHP Notice: Use of undefined constant DB_NAGIOSXI - assumed 'DB_NAGIOSXI' in /usr/local/nagiosxi/html/includes/db.inc.php on line 29
PHP Stack trace:
PHP 1. {main}() /usr/local/nagiosxi/scripts/patch_ndoutils.php:0
PHP 2. require_once() /usr/local/nagiosxi/scripts/patch_ndoutils.php:8
PHP 3. require_once() /usr/local/nagiosxi/html/config.inc.php:209
PHP 4. init_db_table_names() /usr/local/nagiosxi/html/includes/db.inc.php:15
PHP Notice: Undefined index: DB_NAGIOSXI in /usr/local/nagiosxi/html/includes/db.inc.php on line 130
And this continues, tried to upload the whole install.log, its big and not being uploaded when i try
PostgresQL status...
PostgresQL running - continuing...
Creating audit log database structure...
Audit log database schema created successfully.
Nagios XI Audit Log Initialized OK.
Nagios XI PostgresQL Database Initialized OK.
PHP Notice: Use of undefined constant DB_NAGIOSXI - assumed 'DB_NAGIOSXI' in /usr/local/nagiosxi/html/includes/db.inc.php on line 28
PHP Stack trace:
PHP 1. {main}() /usr/local/nagiosxi/scripts/patch_ndoutils.php:0
PHP 2. require_once() /usr/local/nagiosxi/scripts/patch_ndoutils.php:8
PHP 3. require_once() /usr/local/nagiosxi/html/config.inc.php:209
PHP 4. init_db_table_names() /usr/local/nagiosxi/html/includes/db.inc.php:15
PHP Notice: Undefined index: DB_NAGIOSXI in /usr/local/nagiosxi/html/includes/db.inc.php on line 130
PHP Stack trace:
PHP 1. {main}() /usr/local/nagiosxi/scripts/patch_ndoutils.php:0
PHP 2. require_once() /usr/local/nagiosxi/scripts/patch_ndoutils.php:8
PHP 3. require_once() /usr/local/nagiosxi/html/config.inc.php:209
PHP 4. init_db_table_names() /usr/local/nagiosxi/html/includes/db.inc.php:15
PHP 5. generate_table_name() /usr/local/nagiosxi/html/includes/db.inc.php:28
PHP Notice: Use of undefined constant DB_NAGIOSXI - assumed 'DB_NAGIOSXI' in /usr/local/nagiosxi/html/includes/db.inc.php on line 29
PHP Stack trace:
PHP 1. {main}() /usr/local/nagiosxi/scripts/patch_ndoutils.php:0
PHP 2. require_once() /usr/local/nagiosxi/scripts/patch_ndoutils.php:8
PHP 3. require_once() /usr/local/nagiosxi/html/config.inc.php:209
PHP 4. init_db_table_names() /usr/local/nagiosxi/html/includes/db.inc.php:15
PHP Notice: Undefined index: DB_NAGIOSXI in /usr/local/nagiosxi/html/includes/db.inc.php on line 130
And this continues, tried to upload the whole install.log, its big and not being uploaded when i try
================================-
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Re: Error: contacttemplates.cfg : No such file
Could you pm me the log file?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Error: contacttemplates.cfg : No such file
I can't PM install.log, its not being uploaded there as well
No package elf available.
No package glibc.i686 available.
No package glibc-devel.i686 available.
No package cyrus-sasl-lib.i686 available.
No package libcgroup-pam.i686 available.
No package pam.i686 available.
No package popt.i686 available.
This is from install.log
No package elf available.
No package glibc.i686 available.
No package glibc-devel.i686 available.
No package cyrus-sasl-lib.i686 available.
No package libcgroup-pam.i686 available.
No package pam.i686 available.
No package popt.i686 available.
This is from install.log
================================-
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Re: Error: contacttemplates.cfg : No such file
We need to review the whole install.log. The file should be located in "/tmp/nagiosxi/" directory. Rename it to install.txt if you have to and upload it or PM it to any of us on the Nagios Support Team.I can't PM install.log, its not being uploaded there as well
What is the output of the following command?
Code: Select all
yum -v repolistBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error: contacttemplates.cfg : No such file
Yes i am using proxy
Logs and additional info attached
Logs and additional info attached
You do not have the required permissions to view the files attached to this post.
================================-
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Re: Error: contacttemplates.cfg : No such file
And above No packages, their ppc64 version are already installed, script is not using those
Package elfutils-0.152-1.el6.ppc64 already installed and latest version
Package glibc-2.12-1.132.el6.ppc64 already installed and latest version
Package cyrus-sasl-2.1.23-13.el6_3.1.ppc64 already installed and latest version
Package libcgroup-0.40.rc1-5.el6_5.1.ppc64 already installed and latest version
Package pam-1.1.1-17.el6.ppc64 already installed and latest version
Package popt-1.13-7.el6.ppc64 already installed and latest version
Package elfutils-0.152-1.el6.ppc64 already installed and latest version
Package glibc-2.12-1.132.el6.ppc64 already installed and latest version
Package cyrus-sasl-2.1.23-13.el6_3.1.ppc64 already installed and latest version
Package libcgroup-0.40.rc1-5.el6_5.1.ppc64 already installed and latest version
Package pam-1.1.1-17.el6.ppc64 already installed and latest version
Package popt-1.13-7.el6.ppc64 already installed and latest version
Last edited by hondain on Thu Mar 06, 2014 1:03 pm, edited 2 times in total.
================================-
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Re: Error: contacttemplates.cfg : No such file
#ls -ll /usr/local/nagios/etc/
total 76
drwxr-xr-x 8 root root 4096 Mar 5 10:43 ..
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:43 services
-rwxrwxr-x 1 apache nagios 5764 Mar 5 10:43 nagios.cfg
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:43 hosts
-rwxrwxr-x 1 apache nagios 744 Mar 5 10:43 cgi.cfg
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:43 static
-rwxrwxr-x 1 apache nagios 210 Mar 5 10:43 resource.cfg
-rw-r--r-- 1 apache nagios 4827 Mar 5 10:44 ndomod.cfg
-rw-r--r-- 1 apache nagios 2229 Mar 5 10:44 ndo2db.cfg
drwxr-sr-x 4 nagios nagios 4096 Mar 5 10:44 pnp
-rw-r--r-- 1 apache nagios 7207 Mar 5 10:44 nrpe.cfg
-rw-rw-r-- 1 apache nagios 1627 Mar 5 10:44 send_nsca.cfg
-rw-rw-r-- 1 apache nagios 5345 Mar 5 10:44 nsca.cfg
drwsrwsr-x 7 nagios nagios 4096 Mar 5 10:44 .
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:49 import
total 76
drwxr-xr-x 8 root root 4096 Mar 5 10:43 ..
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:43 services
-rwxrwxr-x 1 apache nagios 5764 Mar 5 10:43 nagios.cfg
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:43 hosts
-rwxrwxr-x 1 apache nagios 744 Mar 5 10:43 cgi.cfg
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:43 static
-rwxrwxr-x 1 apache nagios 210 Mar 5 10:43 resource.cfg
-rw-r--r-- 1 apache nagios 4827 Mar 5 10:44 ndomod.cfg
-rw-r--r-- 1 apache nagios 2229 Mar 5 10:44 ndo2db.cfg
drwxr-sr-x 4 nagios nagios 4096 Mar 5 10:44 pnp
-rw-r--r-- 1 apache nagios 7207 Mar 5 10:44 nrpe.cfg
-rw-rw-r-- 1 apache nagios 1627 Mar 5 10:44 send_nsca.cfg
-rw-rw-r-- 1 apache nagios 5345 Mar 5 10:44 nsca.cfg
drwsrwsr-x 7 nagios nagios 4096 Mar 5 10:44 .
drwsrwsr-x 2 apache nagios 4096 Mar 5 10:49 import
================================-
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy
Nagios XI 5.3.2
CENT-OS as vm host
Text mode with proxy