Problem testing Nagios

Jim Perrin jperrin at gmail.com
Wed Apr 12 16:19:12 CEST 2006


On 4/12/06, MAIGNAN Luc <LMAIGNAN at fininfo.fr> wrote:
>
>
> 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>
>
>
>
> The rights seems to be ok :
>
> -rwxrwxr-x  1 nagios nagcmd 162432 avr  7 16:46 avail.cgi
> -rwxrwxr-x  1 nagios nagcmd 161460 avr  7 16:46 cmd.cgi
> -rwxrwxr-x  1 nagios nagcmd 124128 avr  7 16:46 config.cgi
> -rwxrwxr-x  1 nagios nagcmd 178900 avr  7 16:46 extinfo.cgi
> -rwxrwxr-x  1 nagios nagcmd 132256 avr  7 16:46 histogram.cgi
> -rwxrwxr-x  1 nagios nagcmd 112224 avr  7 16:46 history.cgi
> -rwxrwxr-x  1 nagios nagcmd 108800 avr  7 16:46 notifications.cgi
> -rwxrwxr-x  1 nagios nagcmd 107932 avr  7 16:46 outages.cgi
> -rwxrwxr-x  1 nagios nagcmd 107616 avr  7 16:46 showlog.cgi
> -rwxrwxr-x  1 nagios nagcmd 161212 avr  7 16:46 status.cgi
> -rwxrwxr-x  1 nagios nagcmd 125696 avr  7 16:46 statusmap.cgi
> -rwxrwxr-x  1 nagios nagcmd 122080 avr  7 16:46 statuswml.cgi
> -rwxrwxr-x  1 nagios nagcmd 107936 avr  7 16:46 statuswrl.cgi
> -rwxrwxr-x  1 nagios nagcmd 129024 avr  7 16:46 summary.cgi
> -rwxrwxr-x  1 nagios nagcmd 124668 avr  7 16:46 tac.cgi
> -rwxrwxr-x  1 nagios nagcmd 136160 avr  7 16:46 trends.cgi
>
>
> 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
>
>
> Any ideas
>
> Thanks in advance for any help

Seems you've already done this the hard way, but for fedora, I
generally recommend 'yum install nagios'  which eliminates the
headache of building, permissions, adding users, setting up apache,
checking selinux, and just leaves you with setting up your hosts and
services.  Nagios is built and in extras for fedora. You might want to
check it out.


--
Any sufficiently advanced technology is indistinguishable from magic.
-Arthur C. Clarke


-------------------------------------------------------
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