我们安装了Nagios Core 3.2.1,目前的任务是允许非pipe理员用户访问Nagios UI。 这甚至可能吗? 或者我需要安装一些附加?
是否有可能创build“仅查看”用户?
当然,你可以通过使用authorized_for_read_onlyvariables来实现:
/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
让他们只查看特定的服务/服务器?
使用相同的联系人名称创build联系人定义 :
/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 [email protected] }
(这就是所谓的authentication联系人 )
那么让他是你想要查看的主机/服务的联系人:
define host{ use linux-server host_name localhost address 127.0.0.1 contacts anonymous contact_groups admin }
是的,只需创build一个没有任何特殊权限的用户。
那么我已经尝试改变authorized_for_read_only属性。 但为了查看服务和主机,还需要进行configuration更改。 之后,重新启动Apache服务器。
authorized_for_all_services=nagiosadmin,--your user-- authorized_for_all_hosts=nagiosadmin,--your user--