Page 1 of 1

Missing directories and config files.

Posted: Sat Jul 27, 2013 12:27 am
by Pantalooons
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?

Re: Missing directories and config files.

Posted: Sun Jul 28, 2013 7:16 pm
by jsmurphy
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

Re: Missing directories and config files.

Posted: Mon Jul 29, 2013 10:39 am
by lmiltchev
@jsmurphy
Thanks, John!

@Pantalooons
Did the suggestion by jsmurphy help you solve your issue?