Error Whoops! Error: Could not open CGI config file

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.
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Re: Error Whoops! Error: Could not open CGI config file

Post by fm2ahmed »

Hi,

Can u tell me what does make distclean and make clean do?? Would this change or modify my existing checks and services? ?

Regards,
Farooq Ahmed
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Error Whoops! Error: Could not open CGI config file

Post by sreinhardt »

This only removes objects built by gcc when building the nagios cgi's and core engine. It will not effect the binaries in place or any configurations you have done.
Nagios-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.
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Re: Error Whoops! Error: Could not open CGI config file

Post by fm2ahmed »

Hi,

Do I need to restart nagios after doing that?

Regards,
Farooq Ahmed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error Whoops! Error: Could not open CGI config file

Post by abrist »

you should probably stop the nagios service, compile and install, and then start nagios again.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Re: Error Whoops! Error: Could not open CGI config file

Post by fm2ahmed »

Hi,

Will update once done.
Thanks for the advice.

Regards,
Farooq Ahmed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error Whoops! Error: Could not open CGI config file

Post by abrist »

Great, let us know.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Re: Error Whoops! Error: Could not open CGI config file

Post by fm2ahmed »

sreinhardt wrote: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.

Code: Select all

make distclean; make clean
./configure
make all
make install
This will use all the normal defualts that specify that everything should be based off /usr/local/nagios/
Hi,

I was about to carry out the steps. Do i need to include "--with-command-group=nagcmd" with "./configure "??

Regards,
Farooq Ahmed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error Whoops! Error: Could not open CGI config file

Post by abrist »

Most likely not as I believe it is default now. But it wouldn't hurt to include it :)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Re: Error Whoops! Error: Could not open CGI config file

Post by fm2ahmed »

Hi,

It worked. Thanks a million. Now all .cgi's work.

Regards,
Farooq AHmed
Locked