Page 1 of 1

Nagios .cgi files not responding

Posted: Tue Apr 16, 2013 2:24 pm
by devilsguest
Hi,

I have configured everything in nagios and webconf is coming up but have issues with the rest of the tabs like services,hosts and maps...can you please look into the images attached and please do the needful. It's shows up same with all of them

Re: Nagios .cgi files not responding

Posted: Tue Apr 16, 2013 3:47 pm
by abrist
Are your CGIs executable?

Code: Select all

ls -la /usr/local/nagios/sbin/

Re: Nagios .cgi files not responding

Posted: Tue Apr 16, 2013 6:33 pm
by devilsguest
Yes...They are

Re: Nagios .cgi files not responding

Posted: Tue Apr 16, 2013 11:10 pm
by slansing
When you were configuring Nagios were you flipping back and forth between the web UI to make sure your changes did not harm something? I ask this because possibly you know what you changed shortly before this happened? Any trail back you can mention will help greatly reduce the amount of time this will take.

Re: Nagios .cgi files not responding

Posted: Wed Apr 17, 2013 9:07 am
by devilsguest
Ok...Here is the thing...I did made some changes to my config file in apache to get to the web UI of nagios. Later, I made some changes in permissions for the nagios directory.Here I am placing my code wrap of my apache config for nagios.

Code: Select all

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
#  SSLRequireSSL
   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
   AuthName "Nagios Access"
   AuthType Basic
   AuthBasicProvider file
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
   AuthName "Nagios Access"
   AuthType Basic
   AuthBasicProvider file
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>

Re: Nagios .cgi files not responding

Posted: Wed Apr 17, 2013 9:29 am
by devilsguest
Found the issue...I had to enable cgi module in my apache config file. That solves the issue.

Thanks