Nagvis URL Links?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ab3pu
Posts: 54
Joined: Fri Sep 30, 2016 1:51 pm

Nagvis URL Links?

Post by ab3pu »

I am trying to include some of my Nagvis Weathermaps into a Dashboard. I see the Custom Url Dashlet, but it requires the url of the map. When I navigate to the Nagvis Map within the Nagios XI page, it doesn't provide a separate address for each map. Is their a way I can navigate directly to the Nagvis Map outside of Nagios XI?

Bill
Last edited by dwhitfield on Tue Jan 17, 2017 12:14 pm, edited 1 time in total.
Reason: marking with green check mark
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagvis URL Links?

Post by dwhitfield »

I think something like http://NAGIOSSERVER/nagvis/frontend/nagvis-js/ will give you what you want. At the very least, it should point you in the right direction.



Please let us know if you have any additional questions!
Last edited by dwhitfield on Tue Dec 27, 2016 1:51 pm, edited 1 time in total.
Reason: realized might want to use DNS, so NAGIOSSERVER is better.
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Nagvis URL Links?

Post by SteveBeauchemin »

Not sure if this question is still needing an answer, but I am going to share my success at using NagVis in Dashboards.

This pertains to using Custom URL Dashlet only, in order to display a single html file that contains multiple data sources.

In the html file that will be added, I put an iFrame in for the NagVis map.
I provide a link for them to pop out NagVis to it's own tab, and I use an iframe to display the data. I found using a frame with a width and height made the dashboard experience easier to control.

Code: Select all

<!-- NagVis -->
<!-- the NagVis width is always 1315px (some corporate graphic at top of each page defines this) -->
<A HREF="http://[Nagios Server Name or IP]/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=[Map Name]"
  TARGET="_tab">
  <B>NagVis</B>
</A>
<BR />
<IFRAME SRC="http://[Nagios Server Name or IP]/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=[Map Name]"
  WIDTH="1315px"
  HEIGHT="750px">
</IFRAME>
I use the Width and Height to show the NagVis page without scroll bars. Sometimes it takes multiple passes to get it right.

This is just the NagVis piece. I also include a Help Desk software view, 3rd party Graphs, Links to resources, and other data that pertains to the specific NagVis Application I am modelling. So the html page in some cases might have 10 or more iFrames displaying information that the Application Owner finds useful. They like this as it is all in a single location and the Managers just have to look in one place for data. In the html file, I use width and height to eliminate as many scroll bars as I can. Ideally, if done properly, there is a single scroll bar to move vertically and move through the data.

Since the editing of dashboards post creation has been a delete and add scenario, I adopted the single html model where possible. I embed everything I can in the html file that I control, instead of having multiple dashlets added. Then, to make changes, I just edit the single file. It made life easier.

Also, at the bottom of the html, I keep track of the dashlet settings in case I need to make changes. If I have to resize the page for some reason it is good to know what it was before you made changes.

Code: Select all

<!-- CHANGE THESE to remember the Dashboard creation parameters for THIS Dashboard
Heights used
375 X 6 = 2250
Plus 300 grace space
A guide for Height would be to start with all iFrame added together + 220px
Title = Remote Site Bandwidth
W=1360
H=2600
URL=http://[Nagios Server]/[location of html]/SiteView.html
Opacity=100% -->
</BODY>
</HTML>
Thanks

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagvis URL Links?

Post by dwhitfield »

@SteveBeauchemin, thanks as always for your detailed responses!
ab3pu
Posts: 54
Joined: Fri Sep 30, 2016 1:51 pm

Re: Nagvis URL Links?

Post by ab3pu »

Thanks for the assists....It is working now....OK to close
Locked