Hello,
We have installed nagios 3 on our Linux box, everything seems to be working as expected except a few things:
- When I log in on nagios through the web interface with a regular user (using Apache auth with .htaccess) I can see the “Service Status Total” on the top right side of the web page, however when I click on “Host Groups” -> “Summary” I get to see the following message:
“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.”
The username is listed on my contacts.cfg as follows:
define contact{
contact_name paul
use generic-contact
alias paul
email paul@testbox
}
define contactgroup{
contactgroup_name unix-admins
alias UNIX Administrator
members paul
}
However I do not see the group “unix-admins” when I log into nagios, if I put the username on authorized_for_all_services and authorized_for_all_hosts on the cgi.cfg file then I see all the hostgroups on the nagios webpage, I would like this username to see ONLY the groups he is a contact for. For some reason this is not working.
Also atached below is a copy of my nagios entry on httpd.conf (Apache) as well as my .htaccess files and a few permissions:
<Directory “/usr/local/nagios/”>
Options Indexes FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
ScriptAlias /nagios/cgi-bin “/usr/local/nagios/sbin”
Alias /nagios “/usr/local/nagios/share”
<Directory “/usr/local/nagios/sbin/”>
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
<Directory “/usr/local/nagios/share”>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
drwxr-xr-x 9 nagios nagios 512 Jan 7 18:07 /usr/local/nagios/
/usr/local/nagios/etc/:
total 152
-rw-rw-r-- 1 nagios nagios 43599 Jan 7 18:12 nagios.cfg
-rw-rw-r-- 1 nagios nagios 10987 Jan 7 18:11 cgi.cfg
drwxr-xr-x 9 nagios nagios 512 Jan 7 18:07 …
drwxrwxr-x 3 nagios nagios 512 Jan 7 16:57 .
-rw-rw-r-- 1 nagios nagios 10733 Jan 7 16:55 cgi.cfg.andando
-rw-rw---- 1 nagios nagios 1363 Dec 23 16:51 resource.cfg
drwxrwxr-x 2 nagios nagios 512 Dec 21 17:35 objects
-rw-r–r-- 1 nagios nagios 5726 Mar 2 2009 nrpe.cfg
/usr/local/nagios/etc/objects:
total 2378
-rw-rw-r-- 1 nagios nagios 8323 Jan 7 18:13 contacts.cfg
drwxrwxr-x 3 nagios nagios 512 Jan 7 16:57 …
-rw-rw-r-- 1 nagios nagios 464438 Dec 28 15:25 windows.cfg
drwxrwxr-x 2 nagios nagios 512 Dec 21 17:35 .
-rw-r–r-- 1 nagios nagios 92869 Nov 17 12:18 hpux.cfg
-rw-rw-r-- 1 nagios nagios 14126 Nov 12 14:55 timeperiods.cfg
-rw-r–r-- 1 nagios nagios 6278 Nov 10 16:41 linux.cfg
-rw-rw-r-- 1 nagios nagios 34333 Nov 9 17:57 templates.cfg
-rw-rw-r-- 1 nagios nagios 57761 Nov 3 15:44 solaris.cfg
-rw-rw-r-- 1 nagios nagios 8420 Nov 2 11:31 commands.cfg
-rw-rw-r-- 1 nagios nagios 3293 Sep 21 16:55 switch.cfg
-rw-rw-r-- 1 nagios nagios 3124 Sep 21 16:55 printer.cfg
-rw-rw-r-- 1 nagios nagios 5403 Sep 21 16:55 localhost.cfg
Help will be strongly appreciated