Page 3 of 3
Re: Error Whoops! Error: Could not open CGI config file
Posted: Fri Jan 31, 2014 3:11 pm
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
Re: Error Whoops! Error: Could not open CGI config file
Posted: Fri Jan 31, 2014 3:16 pm
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.
Re: Error Whoops! Error: Could not open CGI config file
Posted: Fri Jan 31, 2014 3:21 pm
by fm2ahmed
Hi,
Do I need to restart nagios after doing that?
Regards,
Farooq Ahmed
Re: Error Whoops! Error: Could not open CGI config file
Posted: Fri Jan 31, 2014 3:59 pm
by abrist
you should probably stop the nagios service, compile and install, and then start nagios again.
Re: Error Whoops! Error: Could not open CGI config file
Posted: Fri Jan 31, 2014 5:35 pm
by fm2ahmed
Hi,
Will update once done.
Thanks for the advice.
Regards,
Farooq Ahmed
Re: Error Whoops! Error: Could not open CGI config file
Posted: Mon Feb 03, 2014 11:09 am
by abrist
Great, let us know.
Re: Error Whoops! Error: Could not open CGI config file
Posted: Wed Feb 12, 2014 11:08 am
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
Re: Error Whoops! Error: Could not open CGI config file
Posted: Wed Feb 12, 2014 11:12 am
by abrist
Most likely not as I believe it is default now. But it wouldn't hurt to include it

Re: Error Whoops! Error: Could not open CGI config file
Posted: Wed Mar 26, 2014 5:31 am
by fm2ahmed
Hi,
It worked. Thanks a million. Now all .cgi's work.
Regards,
Farooq AHmed