Fresh installation nagios core - error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vanaidu2004
Posts: 3
Joined: Wed Feb 15, 2012 3:18 pm

Fresh installation nagios core - error

Post by vanaidu2004 »

Dear All,

I've just installed Nagios core and when i issue the command to verify the main configuration file below error is displaying. If there is any issue with any of the configuration files usually it should give error on specific config file. With this error i'm not able to find what is the exact issue. Main config file permissions are given below. Need your suggestions to overcome this error.

-rw-rw-r-- 1 nagios nagios 43774 /opt/local/nagios/etc/nagios.cfg
_________________________________________________________________________________
# /opt/local/nagios/bin/nagios -v /opt/local/nagios/etc/nagios.cfg

Nagios Core 3.3.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 07-25-2011
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Unable to open main config file '/opt/local/nagios/etc/nagios.cfg'
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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Fresh installation nagios core - error

Post by scottwilkerson »

This is a shot in the dark (and shouldn't be necessary), but can we add execute permissions to the nagios.cfg. We have seen some situations where it made a difference.

Code: Select all

chmod +x /opt/local/nagios/etc/nagios.cfg
Also, what OS/OS version are you running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vanaidu2004
Posts: 3
Joined: Wed Feb 15, 2012 3:18 pm

Re: Fresh installation nagios core - error

Post by vanaidu2004 »

Thanks for reply scottwilkerson. I tried this option without any success. I installed nagios 3.3.1 in Oracle Solaris 10 8/11 OS on SPARC Hardware. The strange point here is i already tried to install the same of nagios in test Solaris server which is running x86 version of OS where i did not face any issues.
Locked