... | ... | @@ -62,6 +62,33 @@ required for those `!` -- which might not be necessary with later |
|
|
Icinga releases. Icinga 2 has a [REST API](https://icinga.com/docs/icinga-2/latest/doc/12-icinga2-api/) and its own [command
|
|
|
line console](https://icinga.com/docs/icinga-2/latest/doc/11-cli-commands/#cli-command-console) which makes `icli` completely obsolete.
|
|
|
|
|
|
## Adding a new admin user
|
|
|
|
|
|
When a user needs to be added to the admin group, follow the steps below in the `tor-nagios.git` repository
|
|
|
|
|
|
1. Create a new contact for the user in `config/static/objects/contacts.cfg`:
|
|
|
|
|
|
```
|
|
|
define contact{
|
|
|
contact_name <username>
|
|
|
alias <username>
|
|
|
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>+nagios@torproject.org
|
|
|
}
|
|
|
```
|
|
|
|
|
|
2. Add the user to `authorized_for_full_command_resolution` and `authorized_for_configuration_information` in `config/static/cgi.cfg`:
|
|
|
|
|
|
```
|
|
|
authorized_for_full_command_resolution=user1,foo,bar,<new user>
|
|
|
authorized_for_configuration_information=user1,foo,bar,<new user>
|
|
|
```
|
|
|
|
|
|
# Reference
|
|
|
|
|
|
## Design
|
... | ... | |