All,
I have spent a bunch of time searching and I haven't really found anything, so I apologize if this is obvious.
I am trying to get a "trust center" style dashboard going so my leadership can get a quick 5000-foot level view into the datacenter. I have a Nagios dashboard created that would work great if I could just embed it into a different site, like a SharePoint or Drupal site. Problem being that I have to authenticate before I can view that dashboard.
I know that there are web APIs there, but I am really not a web programmer and I don't want to have to try and figure out how to make a custom web page to pull and interpret the API return XML, I just want something quick and easy to meet the requirement.
Basically, is there a way I can create a dashboard that allows anonymous access, or a string I can put in the request URI that will authenticate to pull the board. Aside from that, are there any open source solutions to connect to the web API and display the data in a good way that I could embed in another page. Ultimately I just need a something I can put on a separate webpage that will show something as basic as "100% Uptime".
Thanks!
Embedded Nagios Dashboard
Re: Embedded Nagios Dashboard
You can append any nagios XI url with a "&username=<username>&ticket=<ticket id>" in order to allow direct access to the page. Follow the steps below:
1. Create a read only user for this as the extra parameters above will log the account in to XI.
2. Go to Admin --> Manage Components --> Backend API URL. Copy the username and ticket id for the new read only user from any of the urls listed in the component for the user.
3. Go to your Dashboard and right click on the link and open it in a new window.
4. Append the url with the ticket and username parameters copied above.
5. Use this url in your other dashboard. It should resemble:
Does that help?
1. Create a read only user for this as the extra parameters above will log the account in to XI.
2. Go to Admin --> Manage Components --> Backend API URL. Copy the username and ticket id for the new read only user from any of the urls listed in the component for the user.
3. Go to your Dashboard and right click on the link and open it in a new window.
4. Append the url with the ticket and username parameters copied above.
5. Use this url in your other dashboard. It should resemble:
Code: Select all
http://<server>/nagiosxi/dashboards/dashboard.php?id=<your dashboard>&username=<username>&ticket=<ticketid>Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
rwitschger
- Posts: 2
- Joined: Wed Apr 08, 2015 2:41 pm
Re: Embedded Nagios Dashboard
Yes, actually, that seems perfect! Can I then lock a dashboard from being edited in the popup view?
Re: Embedded Nagios Dashboard
If you load the dashboard separately from the UI (with the url generated from a right click -> open in new tab), it will be missing the gears on the right!
So, I guess, yes?
So, I guess, yes?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.