Is it possible to create “view only” users?
Claro, você pode fazer isso usando a variável 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
and let them view only specific services/servers?
Crie uma definição de contato com o mesmo 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 [email protected]
}
(isso é chamado de contato autenticado )
então faça dele o contato dos hosts / serviços que você quer permitir ver:
define host{
use linux-server
host_name localhost
address 127.0.0.1
contacts anonymous
contact_groups admin
}