Link Nagios XI DashBoard to Confluence Page

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Link Nagios XI DashBoard to Confluence Page

Post by AngeloMileto »

I found this:
Integrating Nagios XI Dashboard in Confluence
To display a Nagios XI dashboard in Confluence, follow these steps:

Step 1: Prepare Nagios XI Dashboard
Ensure your Nagios XI dashboard is set up and accessible.
Verify that you have the necessary permissions to view the dashboard.
Step 2: Use the Confluence Page
Open the Confluence page where you want to embed the Nagios XI dashboard.
Click on the "Edit" button to modify the page.
Step 3: Embed the Dashboard
Use the HTML macro or iframe to embed the Nagios XI dashboard.
If using an iframe, the syntax is as follows:
html

Copy Code
<iframe src="URL_OF_YOUR_NAGIOS_XI_DASHBOARD" width="100%" height="600px"></iframe>
Replace URL_OF_YOUR_NAGIOS_XI_DASHBOARD with the actual URL of your Nagios XI dashboard.
Step 4: Save and Publish
After embedding, click on "Save" to publish the changes.
Review the page to ensure the dashboard displays correctly.
Additional Tips
Ensure that your Confluence instance allows embedding content from external sources.
If you encounter issues, check the permissions and settings in both Nagios XI and Confluence.
By following these steps, you can successfully integrate your Nagios XI dashboard into Confluence for better visibility and collaboration.
So I setup a test dashboard and verified that I can actually see it when I'm logged into XI and that works fine.

I also found this on the Confluence Page:
Insert the iFrame macro
The iFrame macro lets you embed a webpage inside a Confluence page or live doc.

Use the iFrame macro To add the iFrame macro:

When editing, select "+" from the toolbar
Find the macro by name and select it

Configure it as needed

You can also type / on the page to bring up the same list you'd see by selecting from the toolbar. Continue typing the name of the macro to filter the list.

To edit the iFrame macro:
Select the macro placeholder.
Select the Edit icon to open the configuration panel.
Configure the parameters. Your changes are saved as you go.
Resume editing the page, and the panel closes.

You can also select the centered , medium-width , and full-width icons to adjust the width of some macros.
Select the trashcan iconto remove the macro.
Again, made this work EXCEPT - of course there's a BUT. Why else would I be here :)

The frame shows "nagios.ourdomain.com refused to connect" :( :(

I am logged onto Confluence with the same credentials that I'm using to log onto XI and both are LDAP credentials so they aren't local.

Is there something else I need to do on the XI side to allow it to authenticate remotely to the API/HTTP???
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by AngeloMileto »

Sorry I can't post screen shots but it's an air-gapped system and I can't even hook up an external device to copy the image out.

I'm guessing there must be a setup in one of the configs somewhere but I don't know where. I can follow the API instructions and get another page up in an iFrame and it prompts for credentials but when I try to use a dashboard - which the instructions show you can - there is no prompt for credentials. It just displays a message "refused to connect".

Thanks!
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by cdietsch »

Hi AngeloMileto,

What does the formatting of your dashboard URL look like? For example: http://1.2.3.4/nagiosxi/dashboards/dash ... d=m3i7IeJq

If you try to visit this URL from a different browser or a new private window, are you presented with a login screen and able to see your dashboard?
Cheers,
- Cole
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by AngeloMileto »

Thanks for the reply and suggestion as I hadn't thought about that.

URL in Confluence: <iframe src="https://nagios.mydomain.net/nagiosxi/da ... =4EMHHHhRU" Width="100%" height="600px"></iframe>

If I open a new private window and paste in the URL it stops at the standard login screen and prompts for credentials.

The other test page we made that is (I think) just using the API call/hook prompts for credentials via a standard windows pop-up box.
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by AngeloMileto »

Any other suggestions for this?
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by cdietsch »

AngeloMileto,

Can you please clarify what you mean by
The other test page we made that is (I think) just using the API call/hook prompts for credentials via a standard windows pop-up box.
Cheers,
- Cole
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by AngeloMileto »

Sorry, we did a simple iFrame to verify it worked at all for connectivity checks.

Code: Select all

<iframe src="https://web.mydomain.net/index.html"></iframe>
We set it up to force AD authentication to verify that from within the iframe in Confluence, it would prompt for credentials. That worked so we were assuming that since Nagios required credentials it would prompt as well. I'm guessing that since the credentials request is basically on the main logon page, the it won't pass through to the iframe.

So that's the question: How do we force that authentication? I'm guessing there is a setting/change in one of the configuration files that would force it to prompt for the credentials for authentication when the iframe request comes in.
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by gwesterman »

Hi @AngeloMileto,

I am not sure I understand your latest question, but you might be able to fix the original 'refused to connect' issue by disabling X-Frame Options in Admin -> System Settings -> Security -> Page Security Settings.
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by AngeloMileto »

Thanks for the suggestion! I had disabled the iframes but not the x-frame options. I also added in confluence into the allowed hosts list. That allowed it to "work" but it's not asking for any credentials. I'm concerned that users can use the embedded links on the dashboard to make changes.

Any other suggestions?
AngeloMileto
Posts: 70
Joined: Mon Mar 21, 2022 7:53 am

Re: Link Nagios XI DashBoard to Confluence Page

Post by AngeloMileto »

Is there any way to control the background color of the iframe? I managed to get it imbedded and it's showing up but the entire background of the iframe is white. I tried changing it via the embedded html using background: #2D2D2D or #000000 but it's still white.

When the page first loads, I can see the iframe is the color I set but then after the dashboard loads, the entire iframe is now white. So I know the color is coming from the dashboard but can't see where to change it in the display.
Post Reply