我们安装了 Nagios Core 3.2.1,我当前的任务是允许非管理员用户访问 Nagios UI。这甚至可能吗?还是我需要安装一些附加组件?
是否可以创建“仅查看”用户?
当然,你可以通过使用authorized_for_read_only
变量来做到这一点:
/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=anonymous
Run Code Online (Sandbox Code Playgroud)
让他们只查看特定的服务/服务器?
创建具有相同的联系人定义contact_name
:
/usr/local/nagios/etc/objects/contacts.cfg
define contact{
contact_name anonymous
use generic-contact
alias No Name
service_notifications_enabled 1
host_notifications_enabled 1
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c,w,r
host_notification_options d,u,r
email anonymous@domain.com
}
Run Code Online (Sandbox Code Playgroud)
(这称为经过身份验证的联系人)
然后让他是您要允许查看的主机/服务的联系人:
define host{
use linux-server
host_name localhost
address 127.0.0.1
contacts anonymous
contact_groups admin
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
19340 次 |
最近记录: |