Custom URL Dashlet - On existing Dashboards

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Custom URL Dashlet - On existing Dashboards

Post by SteveBeauchemin »

After upgrade to new Nagios XI version, all my dashboards have changed to tiny little rectangles where the Custom URL Dashlet is used.

When we make a dashboard, we use that quite a bit. Now, it will not re-size, it looks like it does, but when you return to the page it is small again.

Has anyone else used that dashlet? Do yours retain the proper size?

I am using Nagios XI 5.2.3, upgraded from Nagios 2014 2.7/6/5/4...

The offending files are in
/usr/local/nagiosxi/html/includes/dashlets/custom-dashlet

I had to copy from an older version of Nagios XI to get them working properly.

Please advise.

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
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Custom URL Dashlet - On existing Dashboards

Post by WillemDH »

My custom URL dashlets seem to be working fine on 5.2.3. Grtz
Nagios XI 5.8.1
https://outsideit.net
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Custom URL Dashlet - On existing Dashboards

Post by hsmith »

Mine seems to be working all right as well. What was the offending version of the dashlet itself? 1.0.4 is working on my XI5 5.2.3 system. Can you post the steps to reproduce?
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Custom URL Dashlet - On existing Dashboards

Post by rkennedy »

Can you verify what version of the Custom URL Dashlet you are running? I just tried to replicate this and was unable to on 1.0.3.

Admin -> Manage Dashlets
Former Nagios Employee
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Custom URL Dashlet - On existing Dashboards

Post by SteveBeauchemin »

The 1.0.3 and 1.0.4 dashlets have the same behavior. Existing dashlet all get resized down to 200 x 300 pixels or something like that. If I resize them, when I return to the page they are small again. I will attach 2 graphic files to show this. Is seems that the width and height are not saved for the new custom dashlet any more.

I am also attaching the php dashlet that works properly. So you can compare.
You can find it here in the Nagios XI files.
/usr/local/nagiosxi/html/includes/dashlets/custom-dashlet
file is custom-dashlet.inc.php

See attached... 3 files

Thanks

Steve B
You do not have the required permissions to view the files attached to this post.
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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Custom URL Dashlet - On existing Dashboards

Post by rkennedy »

As we aren't able to replicate it over here, I have a couple questions for you -
1. Does this work in IE / Firefox, or is the problem across all 3 browsers?
2. Are you able to resize other dashlets, or is it only this one that you are having issues with?
Former Nagios Employee
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Custom URL Dashlet - On existing Dashboards

Post by SteveBeauchemin »

I only use Chrome, but I tested it on IE and it has the same problem.

The custom-dashlet is the only one I use that needs to be re-sized. I am not looking or using any other dashlets.

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
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Custom URL Dashlet - On existing Dashboards

Post by WillemDH »

I guess you already tried clearing your cache and that other users have the same issue?
Nagios XI 5.8.1
https://outsideit.net
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Custom URL Dashlet - On existing Dashboards

Post by hsmith »

Can you check for component upgrades under the administration menu? I know I had a couple of dashlet issues in the past that new versions of components were pushed out for.
Former Nagios Employee.
me.
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Custom URL Dashlet - On existing Dashboards

Post by SteveBeauchemin »

So, using the Version 1.0.4... - Dashboards were created on 2014 v2.x

More testing... I see that if I add a new custom dashlet, it ignores the Width and Height that I type in. Is that the size of the inner iFrame?
After it is on the Dashboard page, I can re-size it, and it will stay re-sized. It seems that the previous code understood the difference between the iFrame size and the Dashlet size. The new code is only aware of one size. The wrong size.

All my previous dashboards created using the 2014 XI will need to be deleted and added back.

:cry:

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
Locked