Problems with the web interface of Nagios

Marc Powell marc at ena.com
Fri Jun 16 15:25:55 CEST 2006


I believe I saw you are running RHEL4. SELinux is enabled by default. Have you disabled it or set up a policy to allow these? It looks like you haven't. See if you have avc denied messages in /var/log/messages. If so, search the archives for a couple of example nagios policies for SELinux.

--
Marc

> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of REMY Julien
> Sent: Friday, June 16, 2006 4:28 AM
> To: Friedrich Clausen; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Problems with the web interface of Nagios
> 
> In /var/log/httpd/error_log :
> 
> [Fri Jun 16 11:23:37 2006] [error] [client 127.0.0.1] (13)Permission
> denied: exec of '/usr/lib/nagios/cgi/tac.cgi' failed, referer:
> http://localhost/nagios/side.html
> [Fri Jun 16 11:23:37 2006] [error] [client 127.0.0.1] Premature end of
> script headers: tac.cgi, referer: http://localhost/nagios/side.html
> [Fri Jun 16 11:23:38 2006] [error] [client 127.0.0.1] File does not exist:
> /var/www/html/favicon.ico
> 
> Thanks
> 
> -----Message d'origine-----
> De : Friedrich Clausen [mailto:fred at derf.nl]
> Envoyé : vendredi 16 juin 2006 11:15
> À : REMY Julien
> Cc : nagios-users at lists.sourceforge.net
> Objet : Re: [Nagios-users] Problems with the web interface of Nagios
> 
> Hello all,
> 
> Voigt Thomas wrote:
> > Hi!
> >
> > REMY Julien wrote:
> >
> >> Yes, I checked my Nagios configuration (nagios -v nagios.cfg)
> >> and it does not have errors. But if I restart Nagios now, a
> >> message is posted : Starting Network Monitor: nagios.
> >> Moreover, if I want to connect me in the web interface, I
> >> have menus on the left but next to I have a message :
> >> Internal Server Error.
> 
> In addition to Thomas' suggestions, I would also look at the Apache
> error log, usually /var/log/httpd/error_log on Red Hat, check httpd.conf
> for the ErrorLog statement to be sure of the location. It may have some
> more detailed messages.
> 
> >
> > This looks like the nagios process isn't running.
> > Please check, if it is running with 'ps -ef | grep nagios'!
> > The output should look like this:
> >
> > lx0004:~ # ps -ef | grep nagios
> > nagios    8300     1  0 Jun06 ?        00:08:26
> > /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
> >
> > Note that nagios is running under the user 'nagios' (see first column).
> > Check also, if the user nagios is the owner and has the appropriate
> > rights to the config files.
> >
> > Maybe you're checking under 'root' and there is all o.k. and nagios
> > starts under another account, which hasn't the rights to read/write the
> > nagios files...



_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list