[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cgi auth problems on Nagios


I'm also having problems with nagios-mysql (Apache 2.0.43, MySQL 4.0.18, PHP 4.3.4).

I found some hints in http://wiki.tryphon.org/LinuxWiki/NagiosInstall

Check your log files in /var/log/nagios to obtain more info.

Check that Apache cgi-module is enabled. If you check the cgi-bin's (file nagios), you will find that they are ELF execs. In my case, I do:
cd /etc/apache2/mods-enabled
ln -s ../mods-available/cgi.load .

Also, that Apache have the right options
<DirectoryMatch /usr/lib/cgi-bin/nagios/>
    Options ExecCGI

    AllowOverride AuthConfig
    Order Allow,Deny
    Allow From All

    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /etc/nagios/htpasswd.users
    require valid-user

Mario F. Lemus V.        Usuario #19461 counter.li.org

Reply to: