Error Whoops! Error: Could not open CGI config file
Re: Error Whoops! Error: Could not open CGI config file
Posting link to same issue in another thread:
http://support.nagios.com/forum/viewtop ... 42&p=86460
Other thread has been closed so please continue all discussion here.
http://support.nagios.com/forum/viewtop ... 42&p=86460
Other thread has been closed so please continue all discussion here.
Former Nagios employee
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error Whoops! Error: Could not open CGI config file
I would also like to add, please do not open double threads on the same issue, and paste the same answers between the two it is a waste of time and we would like to make the most of that time to help you get your issue resolved.
Re: Error Whoops! Error: Could not open CGI config file
Hi,
Sorry will post over here from now on.
Sorry will post over here from now on.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error Whoops! Error: Could not open CGI config file
Have you tried re sym-linking the directories since your install? I would think that you had not sym-linked nagios to a non existing location before installation the last time, that may have caused issues this time, doing it before you had upgraded.
Re: Error Whoops! Error: Could not open CGI config file
Also, check the permissions on the cgi.cfg if you haven't done this already.
Code: Select all
ls -la /path/to/the/cgi.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error Whoops! Error: Could not open CGI config file
Hi,
Permissions seems to be fine for cgi.cfg.
-rwxr-xr-x. 1 nagios nagcmd 12030 Jan 15 15:34 /usr/local/nagios-4.0.2/etc/cgi.cfg
Permissions seems to be fine for cgi.cfg.
-rwxr-xr-x. 1 nagios nagcmd 12030 Jan 15 15:34 /usr/local/nagios-4.0.2/etc/cgi.cfg
Re: Error Whoops! Error: Could not open CGI config file
Firstly i tried by removing the symlink and then the upgrade failed. Then I re sym-linked the directory and did the upgrade and that went through ok apart from that cgi.cfg error.slansing wrote:Have you tried re sym-linking the directories since your install? I would think that you had not sym-linked nagios to a non existing location before installation the last time, that may have caused issues this time, doing it before you had upgraded.
Should i go ahead and re-run the upgrade again?? I am thinking if i re-run the upgrade by renaming the Nagios folder to old "nagios-3.2.3" instead of "nagios-4.0.2" , that might solve the issue?? What do you say?
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Error Whoops! Error: Could not open CGI config file
It could, I guess we have never seen this done before. This could be an issue stemming from how Nagios was originally set up on the system and it is just now surfacing when you have to upgrade.
Re: Error Whoops! Error: Could not open CGI config file
Hi,
I removed the symlink nagios-4.0.2 and the renamed back to old nagios-3.2.3. And now i get a different error for statusmap.cgi.
It says
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Please help!!!!!!!!!!!!!!!!!!!!!!
I removed the symlink nagios-4.0.2 and the renamed back to old nagios-3.2.3. And now i get a different error for statusmap.cgi.
It says
I ran this and no errors found.Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running 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.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Please help!!!!!!!!!!!!!!!!!!!!!!
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Error Whoops! Error: Could not open CGI config file
Well the cgis are coded to look in certain places via the ./configure options you originally listed. Are these still using the prefix with nagios-4.0.2? Probably the easiest route would be to go back to the nagios build directory and run the following commands.
This will use all the normal defualts that specify that everything should be based off /usr/local/nagios/
Code: Select all
make distclean; make clean
./configure
make all
make installNagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.