Page 1 of 1

User Nagios XI - Link to Dashboard by-passing Auth

Posted: Sat Mar 12, 2022 8:00 am
by jstormshak
greeting!
I'm using Nagios XI 5.8.7 on RHEL 7.9 Linux. I'm asking for community help on getting the proper URL constructed so that I can link Users to their dashboards by-passing auth login screen by passing in username and apikey which they are configured to use (apikey). Every time I use the permalink, it sends me to the login screen. I've added the username and apikey to the URL but with no success. Can someone help to see how that should be constructed or even if this is possible to do. Also, is it also possible to ensure that their session never times-out? The goal is to link this into a Confluence page for quick at a glance status (and yes, this is a poor man's attempt at an operational screen outside the XI console)...

I also have the iframes enabled to allow for this. This is the permalink:
https://myserver/nagiosxi/dashboards/?x ... d%3DURAvOR

Can the username/apikey even be passed to this PHP?

Re: User Nagios XI - Link to Dashboard by-passing Auth

Posted: Tue Mar 22, 2022 1:51 pm
by gsmith
Hi

You shouldn't be able to do this.

The best way to accomplish what you want is to use the API objects/hoststatus and objects/servicestatus calls.

You can find documentation about them under the Help menu:
Image020.jpg
The results are text-based in JSON format so you would have to see if Confluence has an extension to
accept JSON data and output graphics on a webpage, or come up with something custom.

Thanks