Problem testing Nagios

MAIGNAN Luc LMAIGNAN at fininfo.fr
Wed Apr 12 16:20:01 CEST 2006


No, SELinux is definitively disabled.
Apache was restarted, the web page http://procyon/nagios/  displays a good page (the links on the page are inoperants)

The rights into "var" directory seems to be good : 

drwxrwxr-x  4 nagios nagcmd 4096 avr 12 11:07 .
drwxr-xr-x  8 nagios nagios 4096 avr 12 11:19 ..
drwxrwxr-x  2 nagios nagcmd 4096 avr  7 16:46 archives
-rw-rw-r--  1 nagios nagcmd  238 avr 10 16:44 comments.dat
-rw-rw-r--  1 nagios nagcmd  239 avr 10 16:44 downtime.dat
-rw-r--r--  1 nagios nagcmd  879 avr 12 11:07 nagios.log
-rw-r--r--  1 nagios nagcmd 8909 avr 12 11:07 objects.cache
drwxrwsr-x  2 nagios nagcmd 4096 avr  7 16:47 rw
-rw-rw-r--  1 nagios nagcmd 6871 avr 12 11:07 status.dat


Regards

-----Message d'origine-----
De : nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]De la part de Marc
Powell
Envoyé : mercredi 12 avril 2006 16:14
À : nagios-users at lists.sourceforge.net
Objet : RE: [Nagios-users] Problem testing Nagios




> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of MAIGNAN Luc
> Sent: Wednesday, April 12, 2006 4:13 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Problem testing Nagios
> 
> Hi list,
> 
> I try Nagios to see if it can be suitable for my network monitoring.
> I've installed the version 2.1 under a Fedora core 4 and Apache 2.0.54
> (SELinux disabled)
> 
> The config seems to be ok :
> 
> ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
> <Directory "/usr/local/nagios/sbin">
>         AllowOverride AuthConfig
>         Options ExecCGI
>         Order allow,deny
>         Allow from all
> </Directory>
> 
> Alias /nagios /usr/local/nagios/share
> <Directory "/usr/local/nagios/share">
>         Options None
>         AllowOverride AuthConfig
>         Order allow,deny
>         Allow from all
> </Directory>
> \

Apache was restarted after adding these?

> The rights seems to be ok :
> 

I agree.

> 
> 
> But when I try to execute a command, the permission is always denied !
> 
> [Wed Apr 12 11:07:25 2006] [error] [client 172.27.30.76]
(13)Permission
> denied: exec of '/usr/local/nagios/sbin/extinfo.cgi' failed, referer:
> http://procyon/nagios/side.html
> 
> [Wed Apr 12 11:07:25 2006] [error] [client 172.27.30.76] Premature end
of
> script headers: extinfo.cgi, referer: http://procyon/nagios/side.html

That really feels like SELinux. You don't see any 'avc denied' messages
in /var/log/messages?

Check the permissions on the files in ~nagios/var (and the directory
itself). Specifically, comments.dat, downtime.dat, nagios.log,
objects.cache, status.dat and the archives.

--
marc


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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


 


*********************************************************************
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le détruire et d'en avertir immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, modification, diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse.FININFO (et ses filiales) décline(nt) toute responsabilité au titre de ce message, dans l'hypothèse ou il aurait été modifié, altéré, falsifié ou encore édité ou diffusé sans autorisation.
-----------------------------------------------------
This message and any attachments (the "message") is intended
solely for the addressees and is confidential. If you receive this 
message in error, please delete it and immediately notify the 
sender. Any use not in accord with its purpose, any dissemination 
or disclosure, either whole or partial, is prohibited except formal 
approval. Neither FININFO (nor any of its subsidiaries or affiliates) 
shall be liable for the message if modified, altered, falsified, edited 
or diffused without authorization. **********************************************************************


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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