Hi
I am trying to configure nagios on my server i have configured the .cfg files and have got access to the web interface but after clicking any of the links i get an error:
Server Info:
-------------
Distro: Suse 10.1
S/w: nagios 2.9
Webserver: Apache 2.0
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: tac.cgi
Error 500
My httpd.conf file section for this looks like:
Code:
ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/
Code:
<Directory "/usr/local/nagios/sbin">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios /usr/local/nagios/share
<Directory "/usr/local/nagios/share">
Options None
AllowOverride Authconfig
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Each link gives the same error with different cgi file referenced:
The actual file is in binary so can't read it to check for white space or empty lines. Any ideas on what i'm missing or what i can try. I have run the nagios config test on then main file...
Code:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Get the following:
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Thanks for your help.
Minesh