如何将Nagios专用于Nagios内核的用户?

我想创build一些用户帐户,每个用户都有自己的主机组。 当他们login到他们的账户时,他们只能查看和pipe理组中的主机。 我该怎么做呢? 有没有一种工具可以轻松地进行pipe理? 我是Nagios的新手。 谢谢。

定义一个联系人

define contact{ contact_name somedude alias somedude service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email email [email protected] } 

定义一个包含联系人的组

 define contactgroup { contactgroup_name somegroup members somedude } 

当你定义一个主机时,包括contact_group

 define host { host_name someserver.example.org contact_groups somegroup address 1.2.3.4 use generic-host notifications_enabled 1 } 

为这个用户创build一个密码:

 htpasswd /etc/nagios3/htpasswd.users somedude 

(根据你的安装,/ etc / nagios3可能不是正确的目录)