"Home Page" dashboard not being created for new users

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
crystal.then
Posts: 57
Joined: Mon Oct 27, 2014 12:05 am

"Home Page" dashboard not being created for new users

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

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

Post 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.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
crystal.then
Posts: 57
Joined: Mon Oct 27, 2014 12:05 am

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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked