2016-05-02 10:58:05 +02:00
|
|
|
Getting started
|
|
|
|
===============
|
|
|
|
|
|
|
|
When new to the Director please make your first steps with a naked Icinga
|
|
|
|
environment. Director is not allowed to modify existing configuration in
|
|
|
|
`/etc/icinga2`. And while importing existing config is possible (happens for
|
|
|
|
example automagically at kickstart time), it is a pretty advanced task you
|
|
|
|
should not tackle at the early beginning.
|
|
|
|
|
|
|
|
|
2016-03-07 00:49:29 +01:00
|
|
|
|
|
|
|
Create an API user
|
|
|
|
------------------
|
|
|
|
|
|
|
|
```icinga2
|
|
|
|
object ApiUser "director" {
|
|
|
|
password = "***"
|
|
|
|
permissions = [ "*" ]
|
|
|
|
//client_cn = ""
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2016-03-23 10:12:33 +01:00
|
|
|
To allow the configuration of an API user your Icinga 2 instance needs a
|
|
|
|
`zone` and an `endpoint` object for itself. If you have a clustered
|
|
|
|
setup or you are using agents you already have this. If you are using a
|
|
|
|
fresh Icinga 2 installation or a standalone setup with other ways of
|
|
|
|
checking your clients, you will have to create them.
|
|
|
|
|
|
|
|
The easiest way to set up Icinga 2 with a `zone` and `endpoint` is by
|
|
|
|
running the [Icinga 2 Setup Wizard](http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/icinga2-client#icinga2-client-installation-master-setup).
|
|
|
|
|
|
|
|
Take some time to really understand how to work with Icinga Director first.
|
2016-03-07 00:49:29 +01:00
|
|
|
|
|
|
|
|
2016-05-02 10:58:05 +02:00
|
|
|
Other topics that might interest you
|
|
|
|
------------------------------------
|
|
|
|
|
|
|
|
* [Working with agents](24-Working-with-agents.md)
|
2016-05-13 13:44:17 +02:00
|
|
|
* [Understanding how Icinga Director works](10-How-it-works.md)
|
2016-05-02 10:58:05 +02:00
|
|
|
|
|
|
|
What you should not try to start with
|
|
|
|
-------------------------------------
|
|
|
|
|
2016-05-02 10:59:28 +02:00
|
|
|
Director has not been built to help you with managing existing hand-crafted
|
2016-05-02 10:58:05 +02:00
|
|
|
configuration in /etc/icinga2. There are cases where it absolutely would
|
|
|
|
make sense to combine the Director with manual configuration. You can also
|
|
|
|
use multiple tools owning separare config packages. But these are pretty
|
|
|
|
advanced topics.
|
|
|
|
|
|
|
|
|