Nagios .cgi files not responding

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
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Nagios .cgi files not responding

Post 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
Attachments
nagios.png
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios .cgi files not responding

Post by abrist »

Are your CGIs executable?

Code: Select all

ls -la /usr/local/nagios/sbin/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Nagios .cgi files not responding

Post by devilsguest »

Yes...They are
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios .cgi files not responding

Post 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.
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Nagios .cgi files not responding

Post 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>
devilsguest
Posts: 76
Joined: Wed Mar 20, 2013 7:15 pm
Location: New York

Re: Nagios .cgi files not responding

Post by devilsguest »

Found the issue...I had to enable cgi module in my apache config file. That solves the issue.

Thanks
Locked