Hello everybody. I have followed tutorials to install Icinga 2 on my environment and I have succeed. However the Icinga director does not work for me. I am new using Icinga so any help will be well received. What I have found is that if I put the configurations manually on configurations files, Icinga takes them and adds the new server/monitoring etc. But If I try to deploy using director I got an error:
API request failed: Stage creation failed. (RestApiResponse.php:96)
I have 12 pending changes according to Icinga Director. None of them can be deployed. Maybe it is a permission matter but I have not been able to find documentation for this.
please share more insights how you’ve setup the components and their components. E.g. which ApiUser object did you create and which permissions are assigned?
My configuration:
I have created an Api user “icingaweb2” with its respective credentials and all permissions in /etc/icinga2/conf.d/api-users.conf. I have tested it using curl command:
curl -k -s -u icingaweb2:1c1NG4.2019# 'https://localhost:5665/v1' <html><head><title>Icinga 2</title></head><h1>Hello from Icinga 2 (Version: 2.11.0-1)!</h1><p>You are authenticated as <b>icingaweb2</b>. Your user has the following permissions:</p> <ul><li>*</li></ul><p>More information about API requests is available in the <a href="https://icinga.com/docs/icinga2/latest/" target="_blank">documentation</a>.</p></html>
Hello, In additión I have figured out that I cannot create a new ca using icinga2 pki new-ca with the same error: get random.
So I think my issue is related with https://github.com/boostorg/uuid/issues/91#issuecomment-463197297 because my kernel is 3.10.0-327.36.3.el7.x86_64. Is there any solution to this?