Page 1 of 1

Errors after restore to new system

Posted: Wed Sep 18, 2013 2:44 pm
by bbraunsc
I restored a backup of my production system to a newly installed CENTOS box and I can't get it to run.

The Monitoring Engine, Performance Grapher and Database Backend services won't start. And Under the Config file Permissions Check I get an error.
So I ran the below command to verify the installation and I'm getting an error on the contacttemplates.cfg

./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/xitest.cfg'...
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/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...

Re: Errors after restore to new system

Posted: Thu Sep 19, 2013 9:52 am
by abrist
You are missing your contacttemplates.cfg file. Was this part of your backup?