Hi All,
I followed the instructions in http://www.unixmen.com/install-nagios-i ... an-squeez/ on my Ubuntu 12.04 server and I also tried the instructions on http://assets.nagios.com/downloads/nagi ... Source.pdf.
If I try the second one all the directories get created correctly but it won't display the webpage.
When I navigate to the webserver it instead prompts me to download the webpage.
If I use the first method I am able to log into the webpage and use it but all the config directories are missing.
All it creates is
/dev/nagios
/dev/disk/by-id/dm-name-nagios-root
/dev/disk/by-id/dm-name-nagios-swap_1
/dev/mapper/nagios-root
/dev/mapper/nagios-swap_1
/dev/nagios/root
/dev/nagios/swap_1
/usr/share/locale-langpack/en_AU/LC_MESSAGES/nagios-plugins.mo
/usr/share/locale-langpack/en_GB/LC_MESSAGES/nagios-plugins.mo
Any suggestions on how to get this setup correctly?
Missing directories and config files.
Re: Missing directories and config files.
This can be caused by an apache dependency not being installed or enabled or being misconfigured... it's not aware of how to execute a CGI file.
In your /etc/httpd/conf.d/nagios.conf or /etc/apache/conf.d/nagios.conf file you should have a heading that contains this option:
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
</Directory>
For some versions of apache you may need to add the option: AddHandler cgi-script .cgi
Other than that check that your /etc/httpd/conf/httpd.conf file is configured to load the CGI module, ensure it has the line: LoadModule cgi_module modules/mod_cgi.so
In your /etc/httpd/conf.d/nagios.conf or /etc/apache/conf.d/nagios.conf file you should have a heading that contains this option:
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
</Directory>
For some versions of apache you may need to add the option: AddHandler cgi-script .cgi
Other than that check that your /etc/httpd/conf/httpd.conf file is configured to load the CGI module, ensure it has the line: LoadModule cgi_module modules/mod_cgi.so
Re: Missing directories and config files.
@jsmurphy
Thanks, John!
@Pantalooons
Did the suggestion by jsmurphy help you solve your issue?
Thanks, John!
@Pantalooons
Did the suggestion by jsmurphy help you solve your issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!