Problems to run my Apache with nagios

Morris, Patrick patrick.morris at hp.com
Mon Dec 28 19:00:08 CET 2009


Guifre Bosch Fabregas wrote:
> I see this error in all my pages in nagios:
>
> *It appears as though you do not have permission to view information 
> for any of the hosts you requested...
> If you believe this is an error, check the HTTP server authentication 
> requirements for accessing this CGI
> and check the authorization options in your CGI configuration file.
> *
> When i install nagios i put:
>
> useradd -m nagios
> groupadd nagios
>
> usermod -a -G nagcmd nagios
> usermod -a -G nagcmd apache
>
> tar xzf nagios-3.2.0.tar.gz
> cd nagios-3.2.0
> ./configure --with-command-group=nagcmd --prefix=/nagios
> make all && make install && make install-init && make install-config 
> && make install-commandmode && make install-webconf
>
> htpasswd -c /nagios/etc/htpasswd.users admin
>
> tar xzf nagios-plugins-1.4.14.tar.gz
> cd nagios-plugins-1.4.14
> ./configure --with-nagios-user=nagios --with-nagios-group=nagcmd 
> --prefix=/nagios
> make && make install
>
> chcon -R -t httpd_sys_content_t /nagios/sbin/
> chcon -R -t httpd_sys_content_t /nagios/share/
>
>
>
> Where is my problem???

"admin" will need to be a contact on all the hosts and services you want 
to view, or you need to specify it as being authorized to view all hosts 
and services in your cgi.cfg.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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