Missing directories and config files.

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.
Locked
Pantalooons
Posts: 1
Joined: Fri Jul 26, 2013 10:42 pm

Missing directories and config files.

Post 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?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Missing directories and config files.

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Missing directories and config files.

Post by lmiltchev »

@jsmurphy
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!
Locked