Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way for me to configure Nagios to allow user to access only "Tactical Overview" (/nagios/cgi-bin/tac.cgi) through cgi.cfg?

# grep ^authorized_for_ /etc/nagios/cgi.cfg
share|improve this question

Through Nagios? Not that I'm aware of. You could probably hack your apache configuration to allow it, though.

(Full disclosure: I haven't tested this.)

Maybe something like

<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3
        Options FollowSymLinks

        DirectoryIndex index.php

        AllowOverride AuthConfig
        Order Allow,Deny
        Allow From All

        AuthName "Nagios Access"
        AuthType Basic
        AuthUserFile /etc/nagios3/htpasswd.users
        AuthGroupFile /etc/nagios3/htpasswd.groups
                <files index.php|side.php|tac.cgi>
                        require group ViewTac
        require group FullAccess

combined with separating the users into groups would do what you're looking for.

share|improve this answer
I was thinking of doing it through Apache as well, just from looking at your example, you're missing AuthGroupFile, but I get the idea.. – alexus Aug 14 '13 at 14:13
Yeah. I went ahead and added it. :) – Katherine Villyard Aug 14 '13 at 16:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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