Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
nagios - Web interface: authentication through kerberos OK, what about authorization on cgi.cfg?

I want to grant users access to the nagios 3 core frontend by using an active directory group ("NagiosWebfrontend" in the code below). The login works fine like this:

AuthType Basic
AuthName "Nagios Access"
AuthBasicProvider ldap
AuthzLDAPAuthoritative on
AuthLDAPURL "ldap://ip-address:389/OU=user-ou,DC=domain,DC=tld?sAMAccountName?sub?(objectClass=*)"
AuthLDAPBindDN CN=LDAP-USER,OU=some-ou,DC=domain,DC=tld
AuthLDAPBindPassword the_pass
Require ldap-group CN=NagiosWebfrontend,OU=some-ou,DC=domain,DC=tld

Unfortunately, every nagios page just shows "It appears as though you do not have permission to view information for any of the services you requested...". I got the hint, that I am missing a contact in nagios configuration which is equal to my login, but creating one with the same name as the domain user had no effect on this issue. However, it would be great to find a solution without manually editing nagios.conf for every new user, so the admins could grant access to nagios by just putting the user to "NagiosWebfrontend" group. What would be the best way to solve it?

share|improve this question

marked as duplicate by quanta, mdpc, TheCleaner, Scott Pack, Ward Dec 2 '12 at 16:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

There might not be a way to grant (ldap-)group based permissions, but editing cgi.cfg and modifying the following (for example, there are different permissions) has worked fine for me:

authorized_for_system_commands=*

I have replaced the standard nagios login (nagiosadmin) by an asterisks which is okay for my situation so as all nagios admins (there are only few) have all permissions.

share|improve this answer

To solve this, I made puppet generate cgi.cfg and stick in the list of usernames based on an ldap query it does. Nagios iteself doesn't support this.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.