People in my organisation wish to aggregate data from different sources and make reports. One of the reports must show the proportion of servers that are under monitoring vs. those that aren’t.
So they came to me and asked for a REST-API user that has read-only privileges to list the hosts.
I created a Director API role for this and assigned the role to the dedicated user, and it works, it can list the hosts in JSON format.
My issue is that I cannot limit the privileges to read-only. The same user can create new hosts, or modify existing hosts.
How could this limitation be achieved? Does anyone have experimented with this already?
Thank you,
Jean
PS: I prefer to use Director over plain Icinga2, because it will also report on the Disabled hosts.
I would highly second @rivad’s suggestion to use the Icinga 2 API. Creating an Icinga 2 ApiUser with the required permissions and submitting one querying API request would be enough to let the other team query every monitored host.