I've just installed Nagios core from the EPEL repository on CentOS 7.
I modified the included Apache config file to authenticate to our LDAP database with a restricted set of users. Apache is sufficiently protecting our Nagios.
The issue is that I have three users: nagiosadmin (predefined), then teddy, and steve (both from LDAP). Using the configuration below, teddy has full access to Nagios but steve gets messages like "It appears as though you do not have permission to view information for any of the hosts you requested..."
I can't find any rhyme or reason. The contactgroup named admins doesn't seem to be referenced anywhere but the notifications. When I add steve to the contactgroup named admins he has full access.
This is in /etc/nagios/objects/contacts.cfg (included by nagios.conf)
Code: Select all
define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
email support@mydomain.com ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS *****
}
define contact {
contact_name teddy
use generic-contact
alias Teddy User
email teddy@mydomain.com
}
define contact {
contact_name steve
use generic-contact
alias Steve User
email steve@mydomain.com
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin,teddy
}
Any help is appreciated, thanks.