有没有办法限制用户只能访问Nagios中的战术概述?

有没有办法让我configurationNagios,允许用户只通过cgi.cfg访问“战术概述”( /nagios/cgi-bin/tac.cgi )?

 # grep ^authorized_for_ /etc/nagios/cgi.cfg authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin # 

通过Nagios? 不是我所知道的。 尽pipe如此,你也许可以破解你的apacheconfiguration。

(完全披露:我没有testing过。)

也许类似

 <DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3 /stylesheets)> 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 </files> require group FullAccess </DirectoryMatch> 

结合将用户分成组将会做你正在寻找的东西。