Page 1 of 2

Custom URL Dashlet - On existing Dashboards

Posted: Fri Jan 08, 2016 3:50 pm
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

Re: Custom URL Dashlet - On existing Dashboards

Posted: Sat Jan 09, 2016 6:59 am
by WillemDH
My custom URL dashlets seem to be working fine on 5.2.3. Grtz

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 10:57 am
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?

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 11:22 am
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

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 12:26 pm
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

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 12:43 pm
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?

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 12:57 pm
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

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 1:11 pm
by WillemDH
I guess you already tried clearing your cache and that other users have the same issue?

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 1:11 pm
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.

Re: Custom URL Dashlet - On existing Dashboards

Posted: Mon Jan 11, 2016 2:42 pm
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