I installed Nagios 2.5 from the ports tree and apache is serving the home page/documentation but the cgi’s are not working. This is the error I get when running NAGIOS -V CGI.CFG
Error in configuration file ‘/usr/local/etc/nagios/cgi.cfg’ - Line 15 (UNKNOWN VARIABLE)
***> The name of the main configuration file looks suspicious…
Make sure you are specifying the name of the MAIN configuration file on the command line and not the name of another configuration file. The main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'
The configuration files are located in /usr/local/etc/nagios per the installation but cgi.cfg seems to want to see it in /usr/local/nagios/etc. All the file permissions are set to NAGIOS for owner/group. I tried creating the other directory with a symlink and also moving the config files but neither works. Thoughts?