RE: [Nagios-users] Internal Server Error on Nagios 2.0

2006-02-22 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Pete Shelfo
 Sent: Tuesday, February 21, 2006 3:08 PM
 To: Jim Perrin
 Cc: nagios-users@lists.sourceforge.net
 Subject: RE: [Nagios-users] Internal Server Error on Nagios 2.0
 
 I found the answer!!!  Unfortunately installing Nagios via the RPM did
 not help.  The problem lies within SELINUX.  If I disable SELinux the
 CGI scripts work fine.
 
 /etc/selinux/config
 SELinux=disable
 Reboot the server
 
 Now the question is why does the security enhanced Linux module cause
 problems with the CGI scripts?  I value a secure Linux server so I am
 off to research some more.

Because the default policies are secure ;) The list archives are a great
resource. Searching for SELinux yields --

http://article.gmane.org/gmane.network.nagios.user/33586/match=selinux

--
Marc 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Internal Server Error on Nagios 2.0

2006-02-21 Thread jeff vier
On Tue, 2006-02-21 at 11:10 -0500, Pete Shelfo wrote:
 I recently tried to fire up a new Nagios server running on RedHat 4
 Enterprise (fully patched).  Everything works fine, pre-flight passed,
 http is correct, web page displays; however, whenever I access a CGI
 link on the left hand page I get the following error:

I think if you made the font bigger we could help more.

It's a common problem, but it has many (simple) solutions.  This is an
apache-related problem, not Nagios, though.  You'll find it.


signature.asc
Description: This is a digitally signed message part


Re: [Nagios-users] Internal Server Error on Nagios 2.0

2006-02-21 Thread Jim Perrin
 I recently tried to fire up a new Nagios server running on RedHat 4
 Enterprise (fully patched).  Everything works fine, pre-flight passed, http
 is correct, web page displays; however, whenever I access a CGI link on the
 left hand page I get the following error:
 Internal Server Error
  The server encountered an internal error or misconfiguration and was unable
 to complete your request.
  Please contact the server administrator, [EMAIL PROTECTED] and inform them of
 the time the error occurred, and anything you might have done that may have
 caused the error.
  More information about this error may be available in the server error log.
 I have tried and tried to troubleshoot the problem but have had no success.
 1.  I have searched the forums, google and apache.  It appears this is a
 common problem across many Linux platforms
 2.  I have chmod 777 /usr/local/nagios permissions fully with no success
 and added every userID I could like of to the group.
 3.  I have even tried a default configuration with one host, a check
 ping and along with all the sample configs.  The problem still occurs.
 4.  I have verified my http conf and tried all types of suggestions I
 found during my searches.
 My http config error log displays the following:
 Tue Feb 21 10:43:50 2006] [error] [client 10.1.7.200] Premature end of
 script headers: status
 .cgi, referer: http://servername/nagios//side.html
 I am currently running Nagios version 1.1 with no issues.  This really looks
 like an incompatibility with Apache or CGI or something?  Anyone have any
 ideas – I am flat out?


Your permissions or authentication via website is not correct
(REMOTE_USER isn't being set). For RHEL systems, using the rpms
provided by dag make things much easier, as the permissions etc are
done for you. All you're left doing is adding users to the web
authentication setup he provides and configuring services, or changing
his auth to whatever auth system you use in your env. They work very
well.

--
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety''
Benjamin Franklin 1775


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


RE: [Nagios-users] Internal Server Error on Nagios 2.0

2006-02-21 Thread jeff vier

always cc the list so others may learn by your experiences.

On Tue, 2006-02-21 at 15:15 -0500, Pete Shelfo wrote:
 Can you point me in a direction, give me ideas or possibly recommend a
 web resource?

what happens when you run the status.cgi from the command line as the
apache user?

is this error happening with *all* cgis, or just this one?

'Premature end of script headers' *almost always* means the cgi is
throwing an error (before completing headers the browser can
understand).

The best place to start is pasting in the error, in quotes, into google:
http://www.google.com/search?q=%22Premature+end+of+script+headers%22

 -Original Message-
 From: jeff vier [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 21, 2006 11:18 AM
 To: Pete Shelfo
 Cc: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Internal Server Error on Nagios 2.0
 
 On Tue, 2006-02-21 at 11:10 -0500, Pete Shelfo wrote:
  I recently tried to fire up a new Nagios server running on RedHat 4
  Enterprise (fully patched).  Everything works fine, pre-flight passed,
  http is correct, web page displays; however, whenever I access a CGI
  link on the left hand page I get the following error:
 
 I think if you made the font bigger we could help more.
 
 It's a common problem, but it has many (simple) solutions.  This is an
 apache-related problem, not Nagios, though.  You'll find it.


signature.asc
Description: This is a digitally signed message part


RE: [Nagios-users] Internal Server Error on Nagios 2.0

2006-02-21 Thread Pete Shelfo
I found the answer!!!  Unfortunately installing Nagios via the RPM did
not help.  The problem lies within SELINUX.  If I disable SELinux the
CGI scripts work fine.

/etc/selinux/config 
SELinux=disable
Reboot the server

Now the question is why does the security enhanced Linux module cause
problems with the CGI scripts?  I value a secure Linux server so I am
off to research some more.

-Original Message-
From: Jim Perrin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 21, 2006 11:19 AM
To: Pete Shelfo
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Internal Server Error on Nagios 2.0

 I recently tried to fire up a new Nagios server running on RedHat 4
 Enterprise (fully patched).  Everything works fine, pre-flight passed,
http
 is correct, web page displays; however, whenever I access a CGI link
on the
 left hand page I get the following error:
 Internal Server Error
  The server encountered an internal error or misconfiguration and was
unable
 to complete your request.
  Please contact the server administrator, [EMAIL PROTECTED] and inform
them of
 the time the error occurred, and anything you might have done that may
have
 caused the error.
  More information about this error may be available in the server
error log.
 I have tried and tried to troubleshoot the problem but have had no
success.
 1.  I have searched the forums, google and apache.  It appears
this is a
 common problem across many Linux platforms
 2.  I have chmod 777 /usr/local/nagios permissions fully with no
success
 and added every userID I could like of to the group.
 3.  I have even tried a default configuration with one host, a
check
 ping and along with all the sample configs.  The problem still occurs.
 4.  I have verified my http conf and tried all types of
suggestions I
 found during my searches.
 My http config error log displays the following:
 Tue Feb 21 10:43:50 2006] [error] [client 10.1.7.200] Premature end of
 script headers: status
 .cgi, referer: http://servername/nagios//side.html
 I am currently running Nagios version 1.1 with no issues.  This really
looks
 like an incompatibility with Apache or CGI or something?  Anyone have
any
 ideas - I am flat out?


Your permissions or authentication via website is not correct
(REMOTE_USER isn't being set). For RHEL systems, using the rpms
provided by dag make things much easier, as the permissions etc are
done for you. All you're left doing is adding users to the web
authentication setup he provides and configuring services, or changing
his auth to whatever auth system you use in your env. They work very
well.

--
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety''
Benjamin Franklin 1775


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null