I'm looking to install Nagios XI with the offline install as described here. This is done on a fresh CentOS 6.6 install. After I run ./fullinstall, the webpage isn't accessible and when I attempt to start the nagios service I receive the following:
service nagios start
Starting nagios:
Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
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.
Much of what I have found online are about NagiosXI instances that were working before or attempts to import configurations. I don't need to import configurations and haven't had this successfully running. The ./fullinstall completes without any issues, but I don't have any log file after running it if that is supposed to exist. What other services should be started? Is Apache supposed to start with Nagios or do I have to do it manually?
Also, when I started to just touch the cfg files it was looking for it just moved onto the next one and gave the same error, so ultimately it doesn't have to do with the contacttemplates.cfg specifically.
There are a number of statically defined config files then a place configured where you can dump your own. If you continued to touch the missing files you'd eventually come to an end and Nagios would try to start with an empty config. Nevertheless, something went wrong with your install. There should be an install.log in your install directory. Can you look for errors in that, or if you so choose post the contents here and we can take a look?
Also - yes, Apache needs to be running. The install process is supposed to take care of that for you.
What time did you attempt this? I ran into a somewhat similar issue with offlines yesterday. I spoke to a dev and got this reply:
We dug into this a bit more and did find the bug that would result in what you have experienced. With that we are rebuilding the RPM's and offline tarballs.
You will need to run something similar to the following to correct the issue at hand making sure you get/copy the current nagiosxi-4-2.6.el6.x86_64.tar.gz file: