Page 1 of 1

"Home Page" dashboard not being created for new users

Posted: Tue Feb 11, 2020 8:15 pm
by crystal.then
Hello,

We're having a minor issue with new users not getting a "Home Page" dashboard. Steps to recreate -

1. Add a new user
2. Deploy some dashboards to new user (prior to their first login)
3. Log in as new user - home page dashboard does not get generated, and they do not get prompted to take the intro tour.

As a result the users can't build their own Home Pages.

They also run into this weird issue:
dashboardissue.png
Where the nameless dashboards can't be deleted.

Re: "Home Page" dashboard not being created for new users

Posted: Wed Feb 12, 2020 10:25 am
by jdunitz
Hello Crystal!

Thank you for your description, I have a few more questions.

1. Can you upload a screenshot of this users permissions setting (see attachment)?

2. When the new user is logged in, is there a link for the Home Page dashboard, If so, run the following tail command, try to load the Home Page dashboard and post the output of the log to the thread.

Code: Select all

tail -f /var/log/httpd/*error_log
3. Could you PM me your system profile?
(At the top of the main page, click Admin, then on the left under System Config, click System Profile, then Download Profile).

To send us your system profile.
Login to the Nagios XI GUI using a web browser
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.


Let's see what kind of answers we can find for you.

Re: "Home Page" dashboard not being created for new users

Posted: Wed Feb 12, 2020 5:45 pm
by crystal.then
Hello, thanks for the reply and troubleshooting steps.

On further investigation it looks like this only happens when masquerading as the user prior to their first login. Here's the error log when accessing the "Dashboards" tab while masquerading as the user:

Code: Select all

[Thu Feb 13 09:12:11.883662 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/
[Thu Feb 13 09:12:11.919990 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/
[Thu Feb 13 09:12:11.920035 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/
[Thu Feb 13 09:12:12.416767 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.416819 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.417447 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.417463 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.418074 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.418091 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.418107 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/dashboards/dashboard.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
After the user logs in via the login screen the home page gets generated as usual and the problem goes away. Given this, I'm happy for this ticket to be closed.

Re: "Home Page" dashboard not being created for new users

Posted: Wed Feb 12, 2020 5:49 pm
by scottwilkerson
crystal.then wrote:Hello, thanks for the reply and troubleshooting steps.

On further investigation it looks like this only happens when masquerading as the user prior to their first login. Here's the error log when accessing the "Dashboards" tab while masquerading as the user:

Code: Select all

[Thu Feb 13 09:12:11.883662 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/
[Thu Feb 13 09:12:11.919990 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/
[Thu Feb 13 09:12:11.920035 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/
[Thu Feb 13 09:12:12.416767 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.416819 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.417447 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.417463 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.418074 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home_id in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.418091 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Notice:  Undefined variable: home in /usr/local/nagiosxi/html/includes/utils-dashboards.inc.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
[Thu Feb 13 09:12:12.418107 2020] [:error] [pid 7412] [client (IPaddr):39648] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/local/nagiosxi/html/dashboards/dashboard.php on line 0, referer: https://(hostname)/nagiosxi/dashboards/
After the user logs in via the login screen the home page gets generated as usual and the problem goes away. Given this, I'm happy for this ticket to be closed.
Yes that is correct.

Locking thread