Page 1 of 2
Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 10:39 am
by hondain
#/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 ?
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 10:54 am
by slansing
Please run the following, we need to find this file:
Code: Select all
yum install mlocate
updatedb
locate contacttemplates.cfg
locate nagios.cfg
/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:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
It shows that there must be at least a nagios.cfg in that directory.
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 11:09 am
by hondain
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
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 11:20 am
by hondain
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
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 11:29 am
by abrist
Could you pm me the log file?
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 11:52 am
by hondain
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
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 12:17 pm
by lmiltchev
I can't PM install.log, its not being uploaded there as well
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.
What is the output of the following command?
BTW, are you using a proxy?
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 12:32 pm
by hondain
Yes i am using proxy
Logs and additional info attached
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 12:34 pm
by hondain
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
Re: Error: contacttemplates.cfg : No such file
Posted: Thu Mar 06, 2014 12:46 pm
by hondain
#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