Page 1 of 1

Cannot add dashlets to Home dashboard

Posted: Mon Feb 03, 2020 12:20 pm
by snapon_admin
I have a user that cannot add dashlets to his home dashboard. Mine works fine and i've received no complaints from any other users, but I have verified that his does not work. He can add dashlets to any other dashboard he creates, just not home.

CentOS 7
XI 5.6.10

Re: Cannot add dashlets to Home dashboard

Posted: Mon Feb 03, 2020 3:12 pm
by benjaminsmith
Hello @snapon_admin<

Can you log in or masquerade as this user, run the following tail command try to add a dashlet to his home dashboard, and post the output along with the name of the dashlet?


Also, can you post a screenshot of his security settings for this user? Go to Admin > Manage Users > Security Settings. Thanks.
user-security-settings.png

Re: Cannot add dashlets to Home dashboard

Posted: Mon Feb 03, 2020 5:29 pm
by snapon_admin
There's no tail command posted. He's configured as an admin.

Re: Cannot add dashlets to Home dashboard

Posted: Mon Feb 03, 2020 5:42 pm
by benjaminsmith
Hi @snapon_admin,

Sorry about that, here is the command to run:

Code: Select all

tail -f /var/log/httpd/*error_log

Re: Cannot add dashlets to Home dashboard

Posted: Tue Feb 04, 2020 11:41 am
by snapon_admin
Pretty sure this is the relevant bit from that log:

Code: Select all

[Tue Feb 04 10:40:02.376523 2020] [php7:error] [pid 17260] [client 10.0.8.9:55750] PHP Fatal error:  Uncaught Error: Call to undefined function split() in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php:1167\nStack trace:\n#0 /usr/local/nagiosxi/html/includes/utils-dashlets.inc.php(328): textenhanced_dashlet_func('inboard', 'egr6siq8', Array)\n#1 /usr/local/nagiosxi/html/includes/utils-dashlets.inc.php(274): get_dashlet_output('textenhanced', 'egr6siq8', 'inboard', Array)\n#2 /usr/local/nagiosxi/html/includes/utils-dashlets.inc.php(145): display_dashlet_in('textenhanced', 'egr6siq8', Array, 'inboard')\n#3 /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php(757): display_dashlet('textenhanced', 'egr6siq8', Array, 'inboard')\n#4 /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php(603): display_dashboard_dashlet(8, Array, 1)\n#5 /usr/local/nagiosxi/html/includes/page-home-main.php(69): display_dashboard_dashlets(Array)\n#6 /usr/local/nagiosxi/html/includes/page-home-main.php(17): do_page()\n#7 {main}\n  thrown in /usr/local/nagiosxi/html/includes/dashlets/textenhanced/textenhanced.inc.php on line 1167, referer: https://nagios.snapon.com/nagiosxi/

Re: Cannot add dashlets to Home dashboard

Posted: Tue Feb 04, 2020 2:41 pm
by benjaminsmith
Hello @snap,

This error is from the Enhanced Text Dashlet. Can you get a screenshot of the input text and layout options specified by the user? It looks like there may be non-standard characters in there causing a parsing error.

Thank you.

Re: Cannot add dashlets to Home dashboard

Posted: Tue Feb 04, 2020 3:21 pm
by snapon_admin
I think that got it. I'm pretty sure no one here even uses that dashlet so I just removed it from the dashlets page and his home dashboard is now working.

Re: Cannot add dashlets to Home dashboard

Posted: Tue Feb 04, 2020 3:37 pm
by benjaminsmith
Hello @snapon_admin,

Thanks for the update, glad that took care of it. Shall we close this out or did you have any other questions?

Re: Cannot add dashlets to Home dashboard

Posted: Tue Feb 04, 2020 4:00 pm
by snapon_admin
Nah, go ahead and close it up. Thanks!

Re: Cannot add dashlets to Home dashboard

Posted: Tue Feb 04, 2020 4:14 pm
by benjaminsmith
Nah, go ahead and close it up. Thanks!
Sounds good. Closing.