如何允许 Nagios 中的用户查看某些服务器的状态,但不禁用/启用任何内容?

Kaz*_*lis 7 nagios authorization user-permissions

如何允许 Nagios 中的用户查看某些服务器的状态,但不禁用/启用任何内容?

小智 5

在 /usr/local/nagios/etc/cgi.cfg(或系统上的任何地方)定义只读用户:

# A comma-delimited list of usernames that have read-only rights in
# the CGIs.  This will block any service or host commands normally shown
# on the extinfo CGI pages.  It will also block comments from being shown
# to read-only users.

authorized_for_read_only=viewer
Run Code Online (Sandbox Code Playgroud)

当然,必须首先将查看器定义为具有适当 htpasswd 身份验证的联系人。在服务/主机详细信息页面中,您通常拥有命令的右侧会显示:

您的帐户没有执行命令的权限。