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.
Installation Problems 4.0.8
Re: Installation Problems 4.0.8
I should also say that I installed it from the tar ball and I'm using CentOS 7.
Re: Installation Problems 4.0.8
HA! Figured it out.
I copied my old config files to the new system. Nagios' bright shiny new directory structure foils hopeless user yearnings like these. I suppose you all want to try and create an installation that works for everybody, which is why you create your own little mini unix directory tree. Laudable, but your hopeless developer yearnings are messing up my hopeless user yearnings!
I copied my old config files to the new system. Nagios' bright shiny new directory structure foils hopeless user yearnings like these. I suppose you all want to try and create an installation that works for everybody, which is why you create your own little mini unix directory tree. Laudable, but your hopeless developer yearnings are messing up my hopeless user yearnings!
Re: Installation Problems 4.0.8
I don't think I have ever seen it worded this eloquently, but you're pretty much correct here. There are a few ways to get Nagios going, including source installs and upstream methods like apt-get. We don't have much control over what happens in the repos, but we do control our own source installer so we try and make it pretty consistent.mbondr wrote:Laudable, but your hopeless developer yearnings are messing up my hopeless user yearnings!
Former Nagios employee