Installation Problems 4.0.8
Posted: Wed Feb 04, 2015 2:10 pm
The installs Nagios in /usr/local/nagios/[bin|etc|include|libexec|sbin|share|var], which is lovely except that all the scripting still points to the normal /etc/nagios /usr/lib/nagios directories! I see nothing but:
[root@localhost nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
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...
Error: Cannot open resource file '/etc/nagios/resource.cfg' for reading!
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 560 (Check result path '/var/log/nagios/spool/checkresults' is not a valid directory)
Error processing main config file!
On the website:
Whoops!
Error: Could not open main config file '/etc/nagios/nagios.cfg' for reading!
Here are some things you should check in order to resolve this error:
Make sure you've installed a main config file in its proper location. See the error message about for details on where the CGI is expecting to find the configuration file. A sample main configuration file (named nagios.cfg) can be found in the sample-config/ subdirectory of the Nagios source code distribution.
Make sure the user your web server is running as has permission to read the main config file.
Make sure you read the documentation on installing and configuring Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
Can I copy the files into their correct places? As it is, the thing is non-functional.
[root@localhost nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
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...
Error: Cannot open resource file '/etc/nagios/resource.cfg' for reading!
Warning: external_command_buffer_slots is deprecated and will be removed. All commands are always processed upon arrival
Warning: command_check_interval is deprecated and will be removed. Commands are always handled on arrival
Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 560 (Check result path '/var/log/nagios/spool/checkresults' is not a valid directory)
Error processing main config file!
On the website:
Whoops!
Error: Could not open main config file '/etc/nagios/nagios.cfg' for reading!
Here are some things you should check in order to resolve this error:
Make sure you've installed a main config file in its proper location. See the error message about for details on where the CGI is expecting to find the configuration file. A sample main configuration file (named nagios.cfg) can be found in the sample-config/ subdirectory of the Nagios source code distribution.
Make sure the user your web server is running as has permission to read the main config file.
Make sure you read the documentation on installing and configuring Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
Can I copy the files into their correct places? As it is, the thing is non-functional.