Okay, so I loaded Nagios freshly onto a new server. I can authenticate to view the Nagios main page, but I get a misconfiguration error in IE when I attempt to view anything beyond that. I’ve checked the apache error log and this is what it shows
[Fri Nov 18 15:56:24 2005] [error] [client 65.48.36.2] (13)Permission denied: exec of ‘/usr/local/nagios/sbin/status.cgi’ failed, referer: 65.48.36.139/nagios/side.html
[Fri Nov 18 15:56:24 2005] [error] [client 65.48.36.2] Premature end of script headers: status.cgi, referer: 65.48.36.139/nagios/side.html
I frankly am not sure how to interpret this. Any help would be greatly appreciated.
SOLVED:
From what I’ve found out, the problem was actually with SELinux policy on Fedora Core 4 (the OS I’m running), which can prevent the execution of the CGIs on apache. This command took care of my issue:
[quote=“w_il_nagios”]I have a similar problem. If I modify a cgi file (for example status.cgi), the server give me the same error (Premature end of script headers).
With a simple modify, like an added slash in a HTML tag (I need for example to close the img tag with a slash), give me this problem…
WHY??? [/quote]
why should you want to modfy the IMG tags, they are ok as they are.
If you added another one copy and paste from the original code. It possibly is an error due to wrong character escaping.