We have a KB site that describes our environment to Customers with access. We would like to provide a link where the customer can see the status of the servers that support their product (and ONLY the servers that support their product.) I saw a recent post where someone set up a special account to auto login when accessing the Nagios server. They were able to then provide a direct link to the dashboard and not be prompted for a login. This solution will not work in our environment though. We need provide a link where Client 1 can click and see client 1 servers, and client 2 can click another link and see only client 2 servers. If they elect to play around with the URL and attempt to gain greater access, we need them to be still only restricted to their own login.
We have been experimenting with this style of link.
Code: Select all
http://Server/nagiosxi/dashboards/dashboard.php?id=home&username=Client1&ticket=<Client1API Key>
This format works for two of our Admin users, but no other accounts. (regardless of how 'Admin-like' we make the other accounts.)
Documentation indicates the above method is deprecated - being replaced by the REST API (thoroughly documented in the help section - thank you for that!). Unfortunately, our KB site is modular and we would need to buy the module to interpret JSON results. Additionally, we like the dashboard display, and would like to avoid re-inventing the wheel. Does anyone have experience using the username / ticket method? or know of a way to use the API Key to link directly to desired account and dashboard?