GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Director has been designed to work in distributed environments. In case you're using tools like Puppet, Ansible, Salt R? Director keeps all of its configuration in a relational database. So, all you need to tell him is how it can reach and access that db. In case you already rolled out Icinga Web 2 you should already be used to handle resource definitions.
Next you need to tell the Director to use this database resource. Create its config.
KICKSTART WIZARD ( Endpoint name)
You do not need to manually care about creating the schema and to migrate it for newer versions. Just grant the configured user all permissions on his database. You should run this command after each upgrade, or you could also run it at a regular interval. Please have a look at Use --help to learn more about those commands. If you have any good reason for doing so and feel experienced enough you can of course also manage the schema on your own. All required files are to be found in our schema directories.
Deploy the mentioned database resource and config.
Director could now be configured and kick-started via the web frontend. But you are here for automation, so please read on. It doesn't matter whether you already have a schema, did a fresh install or just an upgrade. Migrations are as easy as defining:. The Director kickstart wizard helps you with setting up a connection to Icinga2 master node, import its endpoint and zone definition and it also syncs already configured command definitions.
But this wizard is not only available through the web frontend, you can perfectly trigger it in an idempotent way with Puppet:. Nothing will happen so far. Kickstart will not do anything unless you drop a kickstart.
And of course your Icinga2 installation needs to have a corresponding ApiListener look at your enabled features listening at the given port. You can rerun the kickstart if you have to reimport changed local config, even when the beforementioned check tells you you don't need to. Skip to content. Permalink Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up. Branch: master. Find file Copy path. Raw Blame History.
Automation - Configuration management Director has been designed to work in distributed environments. Generic hints Director keeps all of its configuration in a relational database. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.Nach dem Icinga Upgrade auf Version 2. Im […]. Vorbereitungen […]. Table 'icinga2director. Hallo Martin, Sorry ich habe diese Fehler noch nicht zu Gesicht bekommen. Ich vermute mal das ist ein Fehler aus der Datenbank?
Mit der aktuellen MariaDB unter Ubuntu Master Branch. Ich habe auch von v1. Hast du vielleicht eine zu neue PHP Version 7. Mir sind solche Fehler gern mal bei Ubuntu aufgefallen, da sind die Pakete teilweise nicht miteinander kompatibel. Leider klappt bei mir der Punkt Kickstart Assistent nicht bzw.
Hallo Markus, hast du vielleicht vergessen den Icinga Daemon neutzustarten?
Weiss leider nicht ob ich eine Firewall installiert habe. Nicht einmal der netstat Befehl ging ohne Nachinstallation. Der Daemon wurde neu gestartet bzw. Alle scheint zu funktionieren nur beim erstellen der Host Vorlage ist mir aufgefallen das ich bei den Check-Commands keine Auswahl habe. Weiterhin hab ich im Director gesehen das ich anscheinend nur extern definierte Kommandos habe die nicht ausgebracht werden.
Inhalte 1 Vorbereitung 2 Installation 2. Enabling feature api. Make sure to restart Icinga 2 for these changes to take effect. Now restart your Icinga 2 daemon to finish the installation! Hallo Christian, ich habe das selbe Problem wie Rene und Moritz. Hat soweit auch gut geklappt und funktioniert! DB schema change? Icinga Web2: 2. Eine Idee woran dies liegen kann?GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. When running the initial kickstart, I am getting foreign key exceptions in postgresql which ends up to not be able to import the standard check-commands.
Following is the error message. Skip to content. Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up.
Subscribe to RSS
New issue. Jump to bottom. Copy link Quote reply. Following is the error message Director is v1. TonyBostonTB mentioned this issue Jan 12, Error import, first install This comment has been minimized. Sign in to view. See linked issue for the solution. Thomas-Gelf closed this Jun 8, GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
These are the instructions for manual Director installations. You can learn more about how to automate this in the automation section of this documentation. In case you already installed Director and want to upgrade to the latest version, please read on here. Hint: pgcrypto helps to boost performance, but is currently optional. The following steps should guide you through the web-based Kickstart wizard.
In case you prefer automated configuration, you should check the dedicated documentation section. Please make sure that you choose utf8 as an encoding. As with any Icinga Web 2 module, installation is pretty straight-forward. In case you're installing it from source all you have to do is to drop the director module in one of your module paths. Please note that the directory name MUST be director and not icingaweb2-module-director or anything else.
Download the latest version and extract it to a folder named director in one of your Icinga Web 2 module path directories. Another convenient method is the installation directly from our GIT repository. Just clone the repository to one of your Icinga Web 2 module path directories. It will be immediately ready for use:. Skip to content.
Permalink Dismiss Join GitHub today GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Sign up.
Branch: master. Find file Copy path. Raw Blame History. Installation These are the instructions for manual Director installations. Some features require newer Icinga 2 releases Flapping requires 2. All versions since 2.
Mentioned versions are the required minimum, for MySQL we suggest using at least 5. For best performance please consider use 7. Web-based Configuration The following steps should guide you through the web-based Kickstart wizard. Install the Director module As with any Icinga Web 2 module, installation is pretty straight-forward. Installation from release tarball Download the latest version and extract it to a folder named director in one of your Icinga Web 2 module path directories.
Either way you'll reach the kickstart wizards. Follow the instructions and you're all done! You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.Providing structured data could become tricky that way.
Therefore you are also allowed to provide JSON formatted properties:. This command will fail in case the specified object does not exist. This is when the --auto-create parameter comes in handy. Command output will tell you whether an object has either been created or not modified.
With set you only set the specified properties and do not touch the other ones. You could also want to completely override an object, purging all other eventually existing and unspecified parameters. Please use --replace if this is the desired behaviour. Please note that it is usually absolutely no problem to rename objects with the Director. Even renaming something essential as a template like the famous generic-host will not cause any trouble. At least not unless you have other components outside your Director depending on that template.
Objects can be disabled. That way they will still exist in your Director DB, but they will not be part of your next deployment. Toggling the disabled property is all you need:. Valid values for booleans are yn1 and 0. So to re-enable an object you could use:. As we learned before, yn1 and 0 are valid values for booleans. But custom variables have no data type. And even if there is such, you could always want to change or override this from CLI. So you usually need to provide booleans in JSON format in case you need them in a custom variable.
There is however one exception from this rule. That explains why the example disabling an object worked without passing y or 1.
You could use this also to set a custom variable to boolean true :. This example shows the dot-notation to set a specific custom variable.
Please take a lot of care when modifying object types, you should not do so for a good reason. The CLI allows you to issue operations that are not allowed in the web frontend. Do not use this unless you really understand its implications.Everything I have found on the web tells me that this was a known bug in version 1. Also, when I click 'Activity Log' in the web interface, I get the error like the attachment.
I am trying to use automation, hence, I don't want to use kickstart wizard on the web I already created kickstart. I configured a distributed model.Wrestling Moves manisaskincare.pw Whizzer Kickstart to Stepout
Is this the reason? I had the same issue when using the most recent state of the git master branch. Switched back to the last tagged version v1. Well, I am using v1. I had set the distributed model 6. Is there a specific order I should follow? Or am I missing something e. Just downloaded the latest git and tried again, the same result. Anyone can have the same issue? I am trying to automate the procedures through Ansible as possible as I can and I got stuck here.
I have spent already few hours to figure out the reason of this issue but no luck so far. Therefore, I am thinking about building from scratch.
Icinga2 Director – Installation
It's not that difficult as I am using Ansible. But I want to make sure this time about the order. So, this is what I think as the order:. Am I going on the right track? I will try with 2 master nodes and 1 client. Meanwhile, if someone finds the cause of this issue, please let me know. I'll really appreciate it. Thanks a lot. Authentication to the API works i put the api-users. I tried with this version as well but no hope. Becoming a bit frustratedJust take a backup, upload it together with Kickstart on the new location and run Kickstart.
This is the method demonstrated in our video tutorial which is freely available on our site. One of the most common uses of Akeeba Backup is transferring a site between different locations folders, subdomains, domains and servers. Typically this involves taking a backup, downloading it to your computer, uploading it to the new location alongside Kickstart and launching Kickstart to extract the backup archive and proceed with the restoration.
The download and upload part of this process takes a lot of time, especially when you have a slower connection. The Site Transfer Wizard will save you some precious time by eliminating the need to transfer the backup archive through your computer, instead performing a server to server transfer. We recommend that you try using the Site Transfer Wizard without reading this documentation section. You only need to refer to this documentation in case a server issue or a mistake in the information you entered prevents you from using it.
That's why this documentation section is brutally long; it's troubleshootingnot regular usage documentation. The Site Transfer Wizard is intuitive enough to use without reading its documentation.
If your site is very big, your server too slow or simply doesn't support the requirements of the Site Transfer Wizard then the wizard will fail to transfer the backup archive for you. We cannot do anything against your host's technical limitations. However, you can still transfer your site with the Manual method available in the Site Transfer Wizard.
In a nutshell: you can take a backup; download the backup archive files to your site; upload the backup archive files and Kickstart where you want to restore the site to; run Kickstart.
The Wizard will display a video tutorial about this when you select the Manual method.
Before you begin you must have create a new database for the destination site. This is something that Akeeba Backup and its restoration script is not allowed to do due to the configuration of most servers.
This has to do with your server's database security settings and cannot be "worked around" in any way. If you are not sure how to do it please contact your host - this is a server-specific task and they are the only people who can help you with it.
You also need to know how to connect to the target location. This is required even if you are transferring to a subdirectory, subdomain or domain on the same server your site is currently on.
If you are not sure how to obtain this information please contact your host; they are the only people who can help you accurately figure out this information. It must not block outbound connection to the remote server's FTP port typically port The remote FTP server must allow connections from your site's current server and allow at least 7 connection attempts to be made within 1 second.
Akeeba Backup will be checking that and won't let you proceed with the transfer if it can't connect. The Site Transfer Wizard requires a recent backup, taken within the last 24 hours using the currently active backup profile. If one is not detected you will be notified. If you want to use a backup taken with a different profile please remember to activate that profile from Akeeba Backup's main page before clicking on Site Transfer Wizard.
Click the Backup Now! After the backup is complete you will need to go back to the main page and then click on Site Transfer Wizard again. When a recent backup is detected the Site Transfer Wizard will let you know how much free space you will need approximately!